Class: Admin::SetupController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::SetupController
- Defined in:
- app/controllers/admin/setup_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'app/controllers/admin/setup_controller.rb', line 14 def create @spud_user = SpudUser.new(user_params) @spud_user.super_admin = true if @spud_user.save SpudUserSession.create(@spud_user) redirect_to admin_root_path else render 'new', :status => 422 end end |