Satsou Sa wrote in post #957508: > yong gu wrote in post #957495: >> If you are using rails 3, see this >> http://railscasts.com/episodes/219-active-model > > Thanks! But there is a problem with ActiveModel: I can not make > associations such as belongs_to or has_many...
Why do you need them on a virtual model? Just write your own method. belongs_to and has_many aren't really useful if there's no DB table, are they? What are you trying to achieve? Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

