[Rails] Re: [HELP] Couldn't find Search with id= from controller

2013-06-26 Thread cornelius wilson
Colin Law wrote in post #1113571: On 24 June 2013 20:05, cornelius wilson li...@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

Re: [Rails] Re: [HELP] Couldn't find Search with id= from controller

2013-06-26 Thread Colin Law
On 26 June 2013 16:01, cornelius wilson li...@ruby-forum.com wrote: Colin Law wrote in post #1113571: On 24 June 2013 20:05, cornelius wilson li...@ruby-forum.com wrote: id=kids. It points to the searches controller for the following line: def index @search = Search.find(params[:search])

[Rails] Re: [HELP] Couldn't find Search with id= from controller

2013-06-25 Thread cornelius wilson
I have it as a model to save all the searches to database. Originally I thought it would be good to have information on what users are searching for on a dating app, though I have back away from this in recent weeks. I just haven't removed it as I don't want to break the app. Searches table