What i have <th>Age</th> <th>name</th> <th>Sex</th> what i did <th><%= link_to 'Age',:order_by => 'age', :action => 'index'%></th> <th><%= link_to 'name',:order_by => 'name', :action => 'index'%></th> <th><%= link_to 'Sex',:order_by => 'Sex', :action => 'index'%></th> What i need when user Click On Age or name or sex records should be in that order as user clicked.if user clicked on age Twice Then record should reverse . that would be bonus . By default it Should Be As working now.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.