This project is archived and is in readonly mode.

#5431 ✓resolved
Star Trader

Rails 3 RC Routing: resource member routes lack defaults

Reported by Star Trader | August 24th, 2010 @ 01:47 AM | in 3.0.2

When adding additional actions to a resource as shown in 2.9 of the routing guide (http://edgeguides.rubyonrails.org/routing.html), the action and route naming is not done by default. For example, placing the example code in a fresh app and running rake routes raises an error "missing :action" This can be fixed by changing the line to get 'preview', :action=>'preview', :as=>:preview.

Expected behavior:
1) The example code should parse
2) the action and route name should be inferred

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>

Attachments

Referenced by

Pages