Update README, follow-up to PR #706 [skip ci]

This commit is contained in:
Jon Atack 2016-07-30 13:37:08 +02:00
parent 7cb586a086
commit c1982c6be0
1 changed files with 2 additions and 2 deletions

View File

@ -221,9 +221,9 @@ Ransack.configure do |c|
end
```
####`sort_url` is return only url of `sort_link`
####Ransack's `sort_url` helper is like a `sort_link` but returns only the url
It can be used like `sort_link`.
`sort_url` has the same API as `sort_link`:
```erb
<%= sort_url(@q, :name, default_order: :desc) %>