Class: Binda::ChoicesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Binda::ChoicesController
- 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
#destroy ⇒ Object
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. }, status: 500 end end |