Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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
 


Ïà¹ØÎÊ´ð£º

ruby blockÎÊÌâ

ÏÂÃæÊÇÊä³öÒ»¸öСÓÚ100µÄFibnancciÊýÁУº
class test1
  def Fib(max)
    i1,i2 = 1,1
    while i1 <= max
      yield i1
      ......

£¨¼±£©ruby µ÷ÓÃvcдµÄ¿âÎļþÎÊÌâ

ÎÒ×Ô¼ºÐ´ÁËÒ»¸ö¿âÎļþ£¬¿âÎļþÄÚ²¿Ã»ÎÊÌâ¡£ÎÒÏÖÔÚÏëÓà ruby£¨rpgÀµ÷ÓÃÕâ¸ö¿â£¬ÏÖÔÚÎÊÌâ³öÀ´ÁË£¬±¨´í£¬ËµµÄÊÇGetProcAddress : nSrv or nSrvA  ºÃÏñÊDz»ÄÜÕÒµ½Õâ¸öº¯Êý°É£¬ nSrv ÊÇÎÒ¿âÎļþÀïµÄÒ»¸öº¯ÊýµÄÃû× ......

Ë­ÖªµÀºÃÓõÄRuby IDE£¿

Ë­ÖªµÀºÃÓõÄRuby IDE£¿


·¹ý°ï¶¥

°ï¶¥

cheng_erÄãÕâ¸öÍ·Ïñ±ÈÎҵĻ¹»Æ°¡.

ÓÑÇéUp£¡~

´¿¶¥

ÒýÓÃ
cheng_erÄãÕâ¸öÍ·Ïñ±ÈÎҵĻ¹»Æ°¡.


ÕâÄêÍ·,Ææ¹ÖµÄÊÂÇéÔõôÕâô¶àÄØÎÒ¾Í˵
......

ͬʱ°²×°PHPºÍRUBYµÄÎÊÌâ - Web ¿ª·¢ / Ruby/Rails

ѧϰPHPÓÐÒ»¶Îʱ¼äÁË ÏÖÔÚÏëͬʱѧϰRUBY ON RAILS 
ÓÉÓÚ֮ǰѧϰPHP ÒѾ­×°ºÃÁËAPACHE ºÍ MYSQL ÏÖÔÚÏëÈÃAPACHE·þÎñÆ÷Ò²¿ÉÒÔÔËÐÐRUBY¡£
Ó¦¸ÃÔõô°ì£¿
Çë¸ßÊÖÌáʾ лл


RailsÓ¦Óò¿ÊðרÀ¸: http://ww ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ