有这样的一个插件,你或许会用到
[url=http://agilewebdevelopment.com/plugins/activerecord_base_without_table]ActiveRecord::Base Without Table[/url]
一切使用都和正常的使用一样,只是没有真正的建立数据库表
插件下载地址
[url]http://218.107.133.32:5000/issues/1126[/url]
[url=http://agilewebdevelopment.com/plugins/activerecord_base_without_table]ActiveRecord::Base Without Table[/url]
一切使用都和正常的使用一样,只是没有真正的建立数据库表
class Contact < ActiveRecord::BaseWithoutTable
column :name, :string
column :email_address, :string
column :message, :text
validates_presence_of :name, :email_address, :string
end
插件下载地址
[url]http://218.107.133.32:5000/issues/1126[/url]