Class: Admin::Kitsune::KitsuneUsersController

Inherits:
KitsuneController
  • Object
show all
Defined in:
app/controllers/admin/kitsune/kitsune_users_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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

#indexObject



3
4
5
# File 'app/controllers/admin/kitsune/kitsune_users_controller.rb', line 3

def index
  @users = KitsuneUser.paginate(:page => params[:page])
end

#newObject



7
8
9
# File 'app/controllers/admin/kitsune/kitsune_users_controller.rb', line 7

def new
  @user = KitsuneUser.new
end