spree/spree — pull request #1213 by hoverlover (2012-03-02 05:08:05+00:00)
Title: Use states_url instead of states_path for javascript_include_tag.

If you specify an `assets_host` in your app the `javascript_include_tag` will use that host in the url for `states_path`, and will end up rendering something like this:

```

```

This of course won't work, as the request to `states` is meant to hit the `StatesController` to render the javascript dynamically. Using `states_url` instead will override the assets host and cause the request to properly be routed to the controller and not the assets host.