- Panel.transaction do
- if @panel.store
- format.html { redirect_to @panel, notice: 'Panel was successfully created.' }
- format.json { render json: @panel, status: :created, location: @panel }
- else
- format.html { render action: "new" }
- format.json { render json: @panel.errors, status: :unprocessable_entity }
- end
+ if @panel.store
+ format.html { redirect_to @panel, notice: 'Panel was successfully created.' }
+ format.json { render json: @panel, status: :created, location: @panel }
+ else
+ format.html { render action: "new" }
+ format.json { render json: @panel.errors, status: :unprocessable_entity }