Forum: Ruby on Rails Grouping controllers into modules

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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

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

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.