This project is archived and is in readonly mode.

#4814 ✓invalid
Bob Lail

Rails 3.0b3 and 3.0b4: :as option in resource router fails

Reported by Bob Lail | June 9th, 2010 @ 07:35 PM

In Rails 2.3.5,

  1. create an app
  2. ./script/generate scaffold Post title:string body:string
  3. In routes.rb, add :as => :widgets to map.resources :posts
  4. http://localhost:3000/widgets shows your resource

In Rails 3.0b4 (and b3),

  1. create an app
  2. rails g scaffold Post title:string body:string
  3. In routes.rb, add :as => :widgets to map.resources :posts
  4. http://localhost:3000/widgets throws a RoutingError

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages