[Rails 3.1.0.rc4] Issue with a resource named "asset"

Here are the commands:

  407 rails new resource_test_2
  408 cd resource_test_2/
  409 rails g resource asset
  410 rake routes

The output:

imac:resource_test_2 joel$ rake routes
imac:resource_test_2 joel$ rails --version
Rails 3.1.0.rc4

On 3.0.9 the resource routes come up, on 3.1.0.rc4 the routes do not.
If you use a name other than asset, rc4 brings up the routes.

Without looking deeply into this, I would assume that this is related to the asset pipeline and sprockets using that route. I'm not sure if either disabling it in application.rb with "config.assets.enabled = false" and/or a warning is the proper solution, if any.

- Ken

Seems that introducing a way to rename the asset pipeline route would be a needed option, that would fix issues such as this.

You can do it with config.assets.prefix = “/something”

Pipped to the post!

Nice work Guilermo!