Sha256: 47fa402ad8b87691b25004454a590a57e4468a76d78b5400c63963a60b99cccf

Contents?: true

Size: 291 Bytes

Versions: 7

Compression:

Stored size: 291 Bytes

Contents

require_dependency "binda/application_controller"

module Binda
  class ChoicesController < ApplicationController

  	before_action :set_choice

  	def destroy
  		@choice.destroy
  		head :ok
  	end

  	private

  		def set_choice
  			@choice = Choice.find( params[:id] )
  		end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
binda-0.1.3 app/controllers/binda/choices_controller.rb
binda-0.1.2 app/controllers/binda/choices_controller.rb
binda-0.1.1 app/controllers/binda/choices_controller.rb
binda-0.1.0 app/controllers/binda/choices_controller.rb
binda-0.0.7 app/controllers/binda/choices_controller.rb
binda-0.0.6 app/controllers/binda/choices_controller.rb
binda-0.0.5 app/controllers/binda/choices_controller.rb