You should look into ActiveModel http://railscasts.com/episodes/219-active-model
This will allow you to create model that has certain ActiveRecord like capabilities like validations without the need for a database. Look at the mail_form gem (https://github.com/plataformatec/mail_form/blob/master/lib/mail_form/shim.rb) for another example. (The mail_form gem is described in detail in the 'Crafting Rails Applications', previously mentioned by JB.) Jeff Miller wrote in post #983799: > > I'm pretty sure I've got the controller and model right, but I just need > to tell Rails to NOT look in the database for this model... > -- 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-talk@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.