On Jan 21, 10:58 pm, Nate Leavitt <[email protected]> wrote: > I'm assuming you are meaning you don't want ActiveRecord models. If > thats' the case, then yes it is possible. In fact, I currently do that > in a couple apps that access objects through XML RPC calls. Here is how > I do it, which will give you validations on errors. > > class ModelWithoutDatabase > end
Thanks for all the replies guys! Just what I wanted to her. Is there a list of what methods my new models must implement in order to work well with the rest of Rails? Or does your ModelWithoutDatabase cover it all (via the include)? > > The cool thing about this is that I can still call Model.valid? and use > the validation stuff of ActiveRecord. Then I have my RPC objects that > are Models inherit from the class above so: > > class Contact < ModelWithoutDatabase > def method1 > rpc calls > end > > def method2 > rpc calls > end > end > > I hope that helps. It does, thanks! Shak --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

