So I'm trying to start up my first rails app in quite a while (since 1.5) and I'm getting the following error:
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.3/lib/action_controller/ routing/builder.rb:159:in `build': undefined method `' for :comments:Symbol (NoMethodError)
Obviously it doesn't like something about my attempts at RESTful routing:
map.resources :start, :only => :index map.resources :jobs do |job| map.jobs :comments end map.resources :cities, :only => [:new, :edit] map.resources :regions, :only => [:new, :edit] map.resources :countries, :only => [:new, :edit] map.resources :companies do |company| map.company :jobs, :only => :show end map.resources :departments, :only => [:new, :edit, :destroy]
I'm not sure what is wrong though. According to the docs I've found this syntax is correct.