易截截图软件、单文件、免安装、纯绿色、仅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
 


相关问答:

[已受理] 给Javascript和Ruby开个论坛专栏吧!

给Javascript和Ruby开个论坛专栏吧!
给Javascript和Ruby开个论坛专栏吧!
给Javascript和Ruby开个论坛专栏吧!
Javascript有专栏的:http://forum.csdn.net/SList/JavaScript

尊敬的用户deping_chen,您好: ......

ruby连接Mysql问题

连接Mysql数据库的时候,老是报这个错误!不知道怎么回事
各位大大们,能否告知,感激不尽

另外,我在公司域中,可能会出现一些问题

NoMethodError in BookController#list
undefined met ......

同时安装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号