Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def update
- @nhs_contract = current_user.nhs_contracts.find(params[:id])
- respond_to do |format|
- if @nhs_contract.update_attributes(params[:nhs_contract])
- byebug
- format.html { redirect_to @nhs_contract, notice: 'NHS contract was successfully updated.' }
- format.json { head :no_content }
- else
- format.html { render action: "edit" }
- format.json { render json: @nhs_contract.errors, status: :unprocessable_entity }
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement