markedmondson/ransack_ui — pull request #1 by avit (2013-06-06 04:05:25+00:00)
Title: Allow setting autocomplete as route name

Instead of relying on hacking `controller_path` to get around routes that don't match the controller name, we sometimes need to set the route by name.

```
ransack_autocompletes_through :some_resource_autocomplete_path, :format => :json
```

Passing the controller class for replacing into the `ajax_options[:url]` pattern is still supported as before.