Method: EtCms::Admin::UserController#create

Defined in:
app/controllers/et_cms/admin/user_controller.rb

#createObject



12
13
14
15
16
17
18
19
20
21
22
# File 'app/controllers/et_cms/admin/user_controller.rb', line 12

def create
  @user = User.new(params[:user])
  @user.password = 'password'
  @user.password_confirmation = 'password'

  if @user.save
    redirect_to(admin_user_index_url, :notice => 'User was successfully created.')
  else
    render :action => "new"
  end
end