What you should have is a new model (e.g. AdReply), so that that form
points to AdRepliesController#create, which then attempts to create
the model, and redirects wherever you need to if successful/failed.
All the validations are then on that model and are independent of your
ClassifiedModel.

Cheers,

 -- D

On Mar 24, 2:59 pm, pepe <p...@betterrpg.com> wrote:
> :)
>
> On Mar 23, 2:06 pm, Rails List <rails-mailing-l...@andreas-s.net>
> wrote:
>
> > pepe wrote:
> > > Hi there,
>
> > > I've never done something like that but I can imagine you could do the
> > > validation in your controller. When the action is invoked you can
> > > check the values received in the params hash and act accordingly.
>
> > > Pepe
>
> > > On Mar 21, 12:42 pm, Rails List <rails-mailing-l...@andreas-s.net>
>
> > Thanks a million.  Worked as I wanted (how did I miss this approach?)
> > :-)
> > --
> > Posted viahttp://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to