Displaying 2 results from an estimated 2 matches for "menuscontroller".
Did you mean:
menu_controller
2005 Dec 28
4
undefined method `include''
I''m getting this error in Rails:
undefined method `include'' for
#<MenusController:0x408efd1c>
The offending code is:
require "rexml/document"
include REXML
I see there may be a problem with GCC 4 on OSX, but
I''m using Redhat with GCC 3.2.
http://weblog.rubyonrails.org/articles/2005/12/22/is-gcc-4-0-incompatible-with-ruby-on-os-x-and-elsewhere
I''...
2010 Mar 08
0
Nested Resources + Namespace + Friendly URL
Hi, all
In my rails app I have a controller called Dashboard::MenusController
with a namespace dashboard.
I have a model Company too, where its has_many :menus
So, I have the code above in my route.rb
map.namespace (:dashboard) do |dashboard|
dashboard.resources :companies,
:has_many => :menus
end
With this route I can create a new menu by: dashb...