This project is archived and is in readonly mode.
routes resources except option accept only array
Reported by eagle.anton (at gmail) | February 10th, 2010 @ 12:53 PM
Routes resources doesn't accept this:
resources :uploads, :except => :destroy
but accept this:
resources :uploads, :except => [:destroy]
Comments and changes to this ticket
-
Mike Riley July 29th, 2010 @ 04:04 PM
- State changed from new to invalid
- Importance changed from to Low
Hello,
I am marking this as invalid as using [:destryo] with the brackets is correct. Looking at the Rails API documentation I show the following on this page http://api.rubyonrails.org/classes/ActionController/Resources.html:
map.resources :posts, :only => [:index, :show] do |post|
post.resources :comments, :except => [:update, :destroy] endMike Riley
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>