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

Ruby´ò°ü·¢²¼

http://www.erikveen.dds.nl/distributingrubyapplications/rails.html£º
In this tutorial, we'll go through the following steps: Setup the environment Create the SQLite database Develop the Rails application Create the RBA (= Ruby archive) from the application with Tar2RubyScript Create the standalone executable with RubyScript2Exe module Rails
  class Configuration
    def database_configuration
      #conf = YAML::load(ERB.new(IO.read(database_configuration_file)).result) »á³ö´í
      conf = YAML::load(File.read(database_configuration_file))
      if defined?(TAR2RUBYSCRIPT)
        conf.each do |k, v|
          if v["adapter"] =~ /^sqlite/
            v["database"] = oldlocation(v["database"]) if v.include?("database")
            v["dbfile"]   = oldlocation(v["dbfile"])   if v.include?("dbfile")
          end
        end
      end
      conf
    end
  end
end   "database"=>"E:/worksapce/temp/db/demo_development.sqlite3", oldlocation(v["database"]) ÆäʵÊÇÔÚDB×ÓĿ¼ÖУ¬¶ø²»ÊÇÔÚµ±Ç°ÔËÐеÄĿ¼ÏÂ

tar2rubyscript¿ÉÒÔÁË
rubyscript2exe ²»ÐУ¬ÓпÉÄÜÊÇRAILS°æ±¾ÎÊÌ⣬ ÏÖÔÚÖ¤Ã÷²»ÊÇRAILS°æ±¾ÎÊÌ⣬¹À¼ÆÊÇRUBY °æ±¾ÎÊÌâ 2.Exerb²»ÄÜͨ¹ýgem°²×°£¬²»¹ý°²×°·½Ê½Ò²Ê®·Ö·½±ã¡£
       Ê×Ïȵ½exerbµÄ¹Ù·½ÍøÕ¾ÏÂÔØexerb.Á´½ÓÔÚÒ³ÃæÖмäÄǸöλÖá£
   &#


Ïà¹ØÎĵµ£º

ruby Óï·¨

±¾ÎÄת×Ô:
http://hi.baidu.com/24xinhui/blog/item/9f52dd34382e11325ab5f553.html
ruby-Óï·¨
2009Äê06ÔÂ20ÈÕ ÐÇÆÚÁù ÉÏÎç 00:21
http://www.blogjava.net/xxllnnn/archive/2009/01/18/251762.html
http://www.cnblogs.com/cnblogsfans/archive/2009/01/24/1380804.html
__setobj__ £¨2009-7-14£©
  &nbs ......

Ruby Ruportʵ¼ù—±¨±í²ÎÊýʵÏÖ

´ËÀý×ÓÔÚ Ruby Ruportʵ¼ù—¼òµ¥±¨±íϵͳ ¼° Ruby Ruportʵ¼ù—ÖÐÎÄPDF±¨±íÖ®PRAWN  µÄ»ù´¡ÉϽøÐÐÍêÉÆ£¬Ìí¼ÓÁ˶Ա¨±í²ÎÊýµÄÉè¼Æ¼°ÊµÏÖ¡£
Ò»¡¢´´½¨Êý¾Ý±íreport_parameters
create table report_parameters
(report_parameter_id integer not null auto_increment,
report_execute_id integer not null, ......

Ruby Ruportʵ¼ù—±¨±í²ÎÊýʵÏÖ£¨¶þ£©

±¾ÀýÔÚ  Ruby Ruportʵ¼ù—±¨±í²ÎÊýʵÏÖ µÄ»ù´¡ÉϽøÐиÄÔ죬ʵÏÖ±¨±íÖ´Ðж¨Òåʱ±¨±í²ÎÊýµÄÔö¡¢É¾¡¢¸Ä²Ù×÷
Ò»¡¢ÐÞ¸Äviews/report_executions/edit.html.erb
²»½öÏÔʾÔÚн¨±¨±íÖ´ÐÐʱ±£´æµÄ±¨±í²ÎÊý£¬»¹¿É¶¯Ì¬ÏÔʾʣÓàµÄ²ÎÊý£¨ÕâÀï¿ØÖƲÎÊý×î¶à¿É¶¨Òå5¸ö£©£¬ÕâÑù¿É±ÜÃâÒÅÍü¶¨Ò屨±í²ÎÊý»òÐèÒªÔö¼Ó±¨±í²ÎÊýµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ