On Jan 27, 2014, at 9:41 AM, spurthi gunadhar wrote:

> Hello everybody!
> 
> I am new to Ruby on rails and so my doubt would be very trivial for the most 
> of you. But, since I do not know to tackle the problem, I would like to ask 
> you.
> 
> I have a search method defined in my model. I need to add validations to the 
> search method.
> 
> Should I add a javascript function in my index.html or can I validate the 
> method in the model itself?
> 
> Note : My search method does not have a model of its own. It is defined in 
> another model.
> 
> Please help me on this issue.
> 
> Any suggestion would be appreciated.

What sort of validations are you looking to add here? What search technique are 
you using, and do you need to protect people from getting no results if they 
put garbage in?

Walter

> 
> Thanks in advance!
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/7939da34-4289-46c3-ad7f-1ec356211713%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/8AC11D33-3B68-4DD3-8463-F0BE4AFAE60C%40wdstudio.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to