mynameisrufus/sorted — pull request #3 by carlosramireziii (2012-03-21 21:44:09+00:00)
Title: Pass empty params from link_to_sort helper when request is POST

The `link_to_sort` helper was throwing the following exception if it was called during a POST request (for example, after re-rendering a template during a failed `create` call in Rails)

```
undefined method `delete' for nil:NilClass
```

Instead of passing `nil` to the `SortedViewHelper`, I passed an empty hash which will result in a default sorting and no exception.