ruby²Ù×÷Îļþ
require 'app/configuration'
module RubyAMF
module Configuration
#set the service path used in all requests
# RubyAMF::App::RequestStore.service_path = File.expand_path(RAILS_ROOT) + '/app/controllers'
# => CLASS MAPPING CONFIGURATION
ClassMappings.register(
:actionscript => 'Stock',
:ruby => 'Stock',
:type => 'active_record',
:attributes => ["code", "name"])
end
end
ClassMappings.register(
:actionscript => 'Rolestock',
:ruby => 'Rolestock',
:type => 'active_record',
:associations => ["stock"],
:attributes => ["id", "cost", "amount"])
ÉÏÃæËãÊÇÕû¸öÎļþ°É£¬Ö®ºóÎÒÔÚÁíÒ»¸öͬµÈ¼¶Â·¾¶ÎļþÏÂÒª²Ù×÷Õâ¸öÎļþ
File.open("rubyamf_config.rb") do |file|
while line = file.gets
Ïà¹ØÎÊ´ð£º
×öÁËÈýÄê¡£NETÁË
µ±È»¡£NETˮƽҲºÜÀÃ
Ïë¶àѧһЩеÄÓïÑÔ
ÕâÁ½ÌìÔÚѧϰRUBY
²»ÖªµÀ½«À´ÓÐûÓÐǰ;
RUBYÇ°±²ÃÇ£¬Ö¸µãÒ»¶þ°¡¡£
±ðÕâɽ¿´×ÅÄÇɽ¸ß,ÆäʵËüÃÇÖ»ÊÇÄãµÄÒ»¸ö¹¤¾ß,¾ÍÏóÎäÁÖ¸ßÊÖÄøöÊ÷Ò¶ ......
ËÖªµÀºÃÓõÄRuby IDE£¿
·¹ý°ï¶¥
°ï¶¥
cheng_erÄãÕâ¸öÍ·Ïñ±ÈÎҵĻ¹»Æ°¡.
ÓÑÇéUp£¡~
´¿¶¥
ÒýÓÃ
cheng_erÄãÕâ¸öÍ·Ïñ±ÈÎҵĻ¹»Æ°¡.
ÕâÄêÍ·,Ææ¹ÖµÄÊÂÇéÔõôÕâô¶àÄØÎÒ¾Í˵
......
±¾ÈËÓеãC££¸újavaµ××Ó£¬»ØÍ·Ö±½ÓÀ´Ñ§ROR¡£
Ôõô¸Ð¾õROR¾ÍÄÇô¶ñÐÄÈË£¬µ«ÓÖºÜÏëѧºÃ£¬ÆÈÓÚ¸÷·½ÃæѹÁ¦Ò²Ö»ÄÜѧϰROR¡£Ñ§ÁË´ó¸ÅÓÐÁ½¸öÔ°ɣ¬¿ÉÎÒ×ܸоõ×Ô¼ºÃŶ¼Ã»Èë¡¡Ì«¶àµÄÉËÐĵĻ°¾Í²»Ïë¶à˵ÁË£¬Ö»Ï£Íû¿´µ½µÄ¸ß ......
ÇëÎÊÓÐûÓÐÈËѧϰRubyÓïÑÔ£¿
Õâ¸öÎÊÌâÓÐʲôÒâÒ壿
¿Ï¶¨ÓÐ
¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£ºÇºÇ
Õâ¸ö¿ÉÒÔÓÐ
žžµØ£¬
¡£¡£¡£Óл¹ÊÇûÓУ¿
ÒýÓÃ
Õâ¸öÎÊÌâÓÐʲôÒâÒ壿
É¢·ÖµÄÒâÒåµÄÓУ¡
¹þ¹þ£¬ ......
ÎÒÏÖÔÚ²»µÃ²»ÃæÁÙÒ»¸öÑ¡Ôñ£º A£¬Ìø²Û¼ÌÐø×öJ2EE. B,תÐÍ×örailsµÄ¿ª·¢
ÔÚй«Ë¾¹¤×÷ÒѾ°ëÄ꣬Õâ±ßµÄ·ÕΧ±È½ÏÇáËÉÓä¿ì£¬µ«ÊÇÎÒ¸ºÔðµÄÒ»¸öJavaÏîÄ¿ÒѾÉÏÏߣ¬°´ÕÕpmµÄÒªÇó£¬ÈÃÎÒתÐÍ×örails¿ª·¢¡£¾ÍÎÒѧϰrailsµÄ¹ý³ ......