Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

routes resources except option accept only array

#3920

Routes resources doesn't accept this:

resources :uploads, :except => :destroy

but accept this:

resources :uploads, :except => [:destroy]

Reported by eagle.anton (at gmail) · February 10th, 2010 @ 12:53 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Mike Riley
    Mike Riley
    • 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] end

    Mike Riley

    July 29th, 2010 @ 04:04 PM