Add this line to your application's Gemfile:
gem 'sorted-actionview'And then execute:
$ bundle
Or install it yourself as:
$ gem install sorted-actionview
Generate a sorted link with the email attribute:
link_to_sorted "Email", :emailWorks the same as the link_to method except a second argument for the
sort attribute is needed.
- Fork it ( https://github.com/[my-github-username]/sorted-actionview/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request