first you have the resource like this /users, but you like admin the resources in that way /admin/users.
rails g controller admin/users
Then you get a file like this
class Admin::UsersController < ApplicationController _put your code here_ end
- config your routes
- write a view
the links appear like that link_to "View all users", admin_users_path
Thanks to
<%form_for [:admin, @user] do |f|%>
nice nice
rails rulez!!!!