As I gather, forms should be validated by a corresponding model. So here''s my set up: :subject has_many :calls :call belongs_to :subject :report :adminController I have a form that doesn''t actually save, change, modify, etc any data. It just gathers a series of parameters so it can generate a report based on the subject and call models. The subject and call models have their own set of validations that handle creation, updating, deletion etc. The report won''t be modifing any of these models, so I don''t want them tied together. What is the proper ''rails way'' to do this? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
krunk- wrote:> As I gather, forms should be validated by a corresponding model. So > here''s my set up: > > :subject > has_many :calls > > :call > belongs_to :subject > > :report > > :adminController > > > I have a form that doesn''t actually save, change, modify, etc any data. > It just gathers a series of parameters so it can generate a report > based on the subject and call models. > > The subject and call models have their own set of validations that > handle creation, updating, deletion etc. > > The report won''t be modifing any of these models, so I don''t want them > tied together. > > What is the proper ''rails way'' to do this?Many posts on this in the forums and in the wiki: http://wiki.rubyonrails.com/rails/pages/HowToUseValidationsWithoutExtendingActiveRecord c. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---