On Oct 21, 2009, at 8:14 AM, Bryan Larsen wrote:
> > It's certainly common enough to make models and controllers that > aren't > backed by ActiveRecord models. > > The standard front controller is an example of a controller that isn't > backed by an ActiveRecord model. > > I see too basic approaches that you can take: > > 1) Use hobo_controller in your controller, and add actions manually. > It can reference "models" of your choosing, but that's entirely > controlled by you. > > 2) Use hobo_model_controller in your controller, and name it > corresponding to an object that doesn't derive from > ActiveRecord::Base. > Then keep fixing invalid function errors on the model until things > work. For instance, one function that would have to be implemented > would be "attributes=" > Also note that attr_accessor has been extended by Hobo to take a :type argument - that may help you set up "fields without a model". --Matt Jones --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
