> But it *is* a Membership object... ?:-/ > > But if you *have* to have it as a Product for some reason, you can use > the ActiveRecord::Base "becomes" method: > http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002334 It's a Membership indeed, but in the admin section of my app, I don't need to recode a specific controller for memberships, they can use the products_controller which is fine and defining :controller => "products" won't do the trick as some actions cannot be shared.
#becomes is exactly what I was looking for, I didn't know about this method and it's not featured in AWDWR 3rd Ed. Thanks! -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.