Gabriel Saravia wrote: >> but for some reason that doesn't quite feel like a good solution. > > that, overall, makes sense, and is very little code..combine it with a > before callback or method_missing? > > what about it seems like a poor solution? > > I come back to asking, will all wheel classes have the same attributes > and methods?
Sorry, I neglected to answer your question. Yes, all the wheel models should have the same attributes and methods. So there would be an AbstractWheel class something like this which each dynamically created model would inherit from: class AbstractWheel < ActiveRecord:Base abstract_class = true # common functionality here end -- 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 -~----------~----~----~----~------~----~------~--~---

