Method: IshManager::OfficeActionsController#create
- Defined in:
- app/controllers/ish_manager/office_actions_controller.rb
#create ⇒ Object
Alphabetized : )
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/ish_manager/office_actions_controller.rb', line 8 def create @new_office_action = Office::Action.new params[:office_action].permit! :create, @new_office_action flag = @new_office_action.save if flag flash[:notice] = "Created OAction." redirect_to action: 'index' else flash[:alert] = "Cannot create OAction: #{@new_office_action.errors..join(', ')}." render action: 'new' end end |