Open matenia opened 11 years ago
It turns out that it doesn't like the order param being passed into the search method straight off.
I worked around this by changing my controller to read
@search = Company.order('').search(params[:search])
It kinda still feels like a hack. I would like to get some feedback on this if possible.
Thanks again,
Hi,
I have the following in my controller
and this in my view
The link generates the right query, however the destination page returns an error. Passing in the same options within a console yields the following:
I'm running a rails 2.3.16 app using ruby 1.9.2p318. Is this a problem with my syntax (I'm pretty sure I followed everything in the instructions)
Here's the stack trace from the console ..
Am I doing something wrong? Thanks for your help.