rails/rails — Issue #3363: Impossible to create resources :assetes
Author: cheba
Created: 2011-10-18 22:51:29+00:00
State: open

It's impossible to create Asset resource in rails app.

How to reproduce:

```
rails new test1
cd test1
rm public/imdex.html
rails g scaffold assets
rails s
```

Open http://localhost:3000/assets

You'll get **Routing Error**.

Traceback looks like this (top of stack):

```
actionpack (3.1.0) lib/action_dispatch/routing/route_set.rb:464:in `raise_routing_error'
actionpack (3.1.0) lib/action_dispatch/routing/route_set.rb:454:in `generate'
actionpack (3.1.0) lib/action_dispatch/routing/route_set.rb:493:in `generate'
actionpack (3.1.0) lib/action_dispatch/routing/route_set.rb:518:in `url_for'
actionpack (3.1.0) lib/action_dispatch/routing/url_for.rb:143:in `url_for'
actionpack (3.1.0) lib/action_view/helpers/url_helper.rb:107:in `url_for'
* actionpack (3.1.0) lib/action_dispatch/routing/route_set.rb:200:in `asset_path'
actionpack (3.1.0) lib/sprockets/helpers/rails_helper.rb:35:in `block in javascript_include_tag'
actionpack (3.1.0) lib/sprockets/helpers/rails_helper.rb:27:in `collect'
actionpack (3.1.0) lib/sprockets/helpers/rails_helper.rb:27:in `javascript_include_tag'

```

\* denotes method clash. Apparently, routing helper overwrites some internal method.