Method: EziiRobotExperimentsController#create
- Defined in:
- app/controllers/ezii_robot_experiments_controller.rb
#create ⇒ Object
POST /ezii_robot_experiments POST /ezii_robot_experiments.json
27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'app/controllers/ezii_robot_experiments_controller.rb', line 27 def create @ezii_robot_experiment = EziiRobotExperiment.new(ezii_robot_experiment_params) respond_to do |format| if @ezii_robot_experiment.save format.html { redirect_to @ezii_robot_experiment, notice: 'Ezii robot experiment was successfully created.' } format.json { render :show, status: :created, location: @ezii_robot_experiment } else format.html { render :new } format.json { render json: @ezii_robot_experiment.errors, status: :unprocessable_entity } end end end |