Topic: I need help with routes.rb
I can't for the life of me figure this out, but because "i came down in the last shower" when it comes to programming its not suprising!
map.resources :orders do |map|
map.resources :invoices
end
or
ActionController::Routing::Routes.draw do |map|
map.resources :orders, :invoices,
or anything i try, I will get this error;
undefined method `first' for :orders:Symbol
or this error;
undefined method `resources' for #<ActionController::Routing::RouteSet:0x32fce40>
I even downloaded the code for resful2 from the agile web development book and got the same error."undefined method `first' for :orders:Symbol"
Has anyone got some insight into this? Please!