Hi Brian: It's okay, I was just trying to ensure that I wasn't reinventing the wheel :)
Thanks, Ibon. On Jan 6, 5:17 pm, Bryan Larsen <[email protected]> wrote: > On Tue, Jan 3, 2012 at 7:42 AM, txapelgorri <[email protected]> wrote: > > Hi: > > > I would like to validate fields for a searching form on a custom > > action from de front controller. I know about the validations of Rails > > that apply on the model, but does anyone fight with "the right way" of > > doing this validations for typical searching forms?. > > Not sure if there's a better way, but the way I usually do it is: > > In the controller action performing the search, I check the conditions > and then if they don't match I set the flash and do a redirect. > > That was pretty terse. If any of those steps are tripping you up, let me > know. > > Bryan -- 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.
