A complete rails beginner here.
How do I go about handling a query string in rails?
For example for:
http://www.something.com/movie?sort=title
For implementing the the view in the haml file, how can I make it so that clicking on Movie title will send that query string,
And more importantly how do I handle it. Where should I implement the function which can access that query string using :params .
I have been on this for more than a day now and could not understand whether that query string will call a controller function or a module from helper.
I hope I was clear enough about the question.
Any help will be appreciated.
PS:- there is a movie table with title as one of its column.
Not sure I really understand what you want. Does this suit you?
Then access param with
params[:sort]?(Accord
movie_index_pathwith your routes configuration)