Sha256: 28f20b5d4edb28447117fe038f6046d97969f382c14ff49df97ee12f8806c8cb
Contents?: true
Size: 715 Bytes
Versions: 1
Compression:
Stored size: 715 Bytes
Contents
module Rapidfire class QuestionGroupsController < ApplicationController before_filter :authenticate_administrator!, except: :index respond_to :html def index @question_groups = QuestionGroup.all respond_with(@question_groups) end def new @question_group = QuestionGroup.new respond_with(@question_group) end def create @question_group = QuestionGroup.new(params[:question_group]) @question_group.save respond_with(@question_group, location: rapidfire.question_groups_path) end def destroy @question_group = QuestionGroup.find(params[:id]) @question_group.destroy respond_with(@question_group) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rapidfire-1.0.0 | app/controllers/rapidfire/question_groups_controller.rb |