query_string examples?

The parameters are stored in the params hash http://localhost/people/show?order=name will automatically initialize your params hash like this params={:controller=>“people”,:action=>“show”,:order=>“name”}

In your view you would probably have <%= link_to(“Order by whatever”, :action=>‘show’,:order=>‘whatever’) %>

When the user clicks that, in your controller params[:order] will be ‘whatever’ and you can order by that