Forum: Ruby on Rails Grouping controllers into modules

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Aldo I. (Guest)
on 2008-10-07 19:08
i have grouping administration controllers into module (admin) for
maintaining more order and logical structure.
then i have modified class controller:

class Admin::LocationsController < ApplicationController
....
end



i have created in views the directory "admin" and put the directory
"locations" into this.

i have setting the routes.rb:

....
map.namespace :admin do |admin|
  admin.resources :locations
end
....

but i can't access to CRUD pages

i don't know the right sintax for modifing the link_to helper
help me
This topic is locked and can not be replied to.