I'm not sure if I'm doing something wrong or there is a problem with namespaces and routes in 3.0.0.beta version. After creating new application I've generated new controller with
script/rails generate controller Admin::Dashboard show and added: namespace :admin do resource :dashboard end to routes.rb, but http://localhost:3000/admin/dashboard resulted in routing error: No route matches "/admin/dashboard". Maybe I'm wrong but it looks like problem is in mapper.rb line 391: def controller options[:controller] || plural end where pluralized version of controller is returned so even: rake routes returns correct list of routes (in singular form) final target has pluralized version (admin/dashboards) and routing error occurs. Now I'm wondering whether I've wrongly defined route or controller method should be: def controller options[:controller] || singular end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
