Ruby on Rails Wednesday, June 26, 2013

Colin Law wrote in post #1113571:
> On 24 June 2013 20:05, cornelius wilson <lists@ruby-forum.com> wrote:
>> id=kids. It points to the searches controller for the following line:
>>
>> def index
>> @search = Search.find(params[:search])
>
> find expects a numeric id value, presumable params[:search] is set to
> "kids" rather than an id.
>
> Colin

How would I be able to reverse it so that it searches for the term as
oppose to the numeric id of the search options. As I would like for it
to be able to search all things on a user profile.

--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d5b15638a0191f1f2b10ce875002db1c%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment