Class: Admin::Kitsune::KitsuneUsersController
- Inherits:
-
KitsuneController
- Object
- KitsuneController
- Admin::Kitsune::KitsuneUsersController
- Defined in:
- app/controllers/admin/kitsune/kitsune_users_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/admin/kitsune/kitsune_users_controller.rb', line 11 def create @user = KitsuneUser.new(params[:kitsune_user]) if @user.save flash[:notice] = "User was created" redirect_to url_for(:controller => 'admin/kitsune/kitsune_users', :action => 'index') else render 'new' end end |
#index ⇒ Object
3 4 5 |
# File 'app/controllers/admin/kitsune/kitsune_users_controller.rb', line 3 def index @users = KitsuneUser.paginate(:page => params[:page]) end |
#new ⇒ Object
7 8 9 |
# File 'app/controllers/admin/kitsune/kitsune_users_controller.rb', line 7 def new @user = KitsuneUser.new end |