Hi, You need to change several things here.
For example you need to move user to admin 1. in routes.rb, add this *namespace :admin do* * resources :users* *end* routes to this user resource will be prefixed by '/admin' like '/admin/users/index' 2. create users_controller.rb under admin folder in /app/controllers in users_controller.rb, name the class using admin namespace, like *class Admin::UsersController < ApplicationController* *end* 3. create an admin folder under views, and put all your users' view here. done! Note you do not need to change anything to model. You can refer namespace route doc here<http://guides.rubyonrails.org/routing.html#controller-namespaces-and-routing> zvaya On Thursday, July 26, 2012 9:45:15 PM UTC+8, Dean Chester wrote: > > Hi, > > I want to develop my resources that deal with CRUD operations on my models > in a namespace of /admin. How is the best approach to do this? What needs > to be changed in order to do this? As in my last attempt of moving things > to a namespace my software broke. > > TIA, > > Dean -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ez5U-UQZxaoJ. For more options, visit https://groups.google.com/groups/opt_out.

