Class: Binda::ChoicesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/binda/choices_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#after_sign_in_path_for, #after_sign_out_path_for, #set_locale

Instance Method Details

#destroyObject



8
9
10
11
12
13
14
# File 'app/controllers/binda/choices_controller.rb', line 8

def destroy
	if @choice.destroy
		head :ok
	else
		render json: { errors: @choice.errors.full_messages }, status: 500
	end
end