Wednesday, October 27, 2010

[Rails] Virtual model

Hello,

I would like to create a simple ActiveRecord model, but working without
table... Is that possible? I think we can this a virtual model.

And I would like to be able to use relations (like has_many :users, etc)
with this model (named App for instance), such as:

> App.first.users

Thanks for any ideas.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate