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