This is something that should 'just work' much more easily than it does now. I know people have found this tricky in the past.
Tom On 21 Oct 2009, at 13:14, 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=" > > #1 is fairly straightforward. You'd have to add your own create, > update, delete actions, etc., but that's not difficult. > > I believe #2 is possible, but I'm not sure how much work it is. It's > quite possible that this will expose some Hobo issues, the fixing of > which will help us get ready for Rails 3. > > cheers, > Bryan > > > Venka Ashtakala wrote: >> Hello all >> >> I want to be able to create a hobo model that doesn't actually >> correspond to a database table, what I want to do is use this dummy >> model when I am creating forms in hobo, and the data in the forms >> doesn't need to be saved in the database, but just be processed by >> an >> action in my controller. >> I tried to google for some information on this and didn't find any, >> then >> I tried to use this plugin: >> http://agilewebdevelopment.com/plugins/ >> activerecord_base_without_table >> in conjunction with hobo but that didn't work out for me since I >> wasn't >> able to specify the types for the 'columns' in my model. (There were >> other issues as well ) Has anyone tried to do this and had any luck? >> >> Thanks >> Venka >> >> -- >> Venka Ashtakala, B.Eng, G.C. Eng >> Venka Ashtakala & Associates >> Software Development Consultants >> Office: +1-703-596-0287 >> Fax: +1-815-550-1356 >> Mobile: +91 9886304317 >> [email protected] <mailto:[email protected]> >> >> >> >>> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
