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.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

routes controller block raises "missing :action" arbitrarily between symbol / string

#4006
  controller :posts do
    match 'people' => :people,  :as => 'people' # works
  end
  controller :posts do
    match 'people' => :people,  :as => :people  # works
  end
  controller :posts do
    match :people  => :people,  :as => :people  # raises error - "missing :action"
  end
  controller :posts do
    match 'people' => 'people', :as => :people  # raises error - "missing :action"
  end

Reported by trevor · February 20th, 2010 @ 03:34 AM

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

Activity

  1. José Valim
    José Valim
    • Assigned user set to josh

    February 21st, 2010 @ 11:55 AM

  2. josh
    josh
    • State changed from new to invalid

    Both cases are invalid although the #3 AssetTagHelper should accept a slightly wider range of protocols error message is bad. Paths must be strings and actions must be symbols if they are standalone. You can't use strings <=> symbols where ever you want, they mean different things in the new dsl.

    February 22nd, 2010 @ 05:02 PM