```ruby
class QuestionsController < ApplicationController

  def index
    @questions = Question.all
    @questions_grid = QuestionsGrid.new(params[:question_grid]) do |scope|
      scope.page(params[:page])
    end
  end

  def show
    @question = Question.find(params[:id])
  end

  def new
    @question = Question.new
  end

  def create
    @question = Question.new(question_params)
    if @question.save
      flash[:success] = 'Created the new question!'
      redirect_to @question
    else
      render 'new'
    end

    def edit
      @question = Question.find(params[:id])
    end

    def update
      @question = Question.find(params[:id])
      if @question.update_attributes(question_params)
        flash[:success] = 'Question updated'
        redirect_to @question
      else
        render 'edit'
      end
    end
  end

  private

  def question_params
    params.require(:question).permit(:question, :sort, :visible, :multiple_choice)
  end

end
```

Fix indentation error that makes question edit and update unreachable. Whoops.
user
```ruby
class QuestionsController < ApplicationController

  def index
    @questions = Question.all
    @questions_grid = QuestionsGrid.new(params[:question_grid]) do |scope|
      scope.page(params[:page])
    end
  end

  def show
    @question = Question.find(params[:id])
  end

  def new
    @question = Question.new
  end

  def create
    @question = Question.new(question_params)
    if @question.save
      flash[:success] = 'Created the new question!'
      redirect_to @question
    else
      render 'new'
    end
  end

  def edit
    @question = Question.find(params[:id])
  end

  def update
    @question = Question.find(params[:id])
    if @question.update_attributes(question_params)
      flash[:success] = 'Question updated'
      redirect_to @question
    else
      render 'edit'
    end
  end

  private

  def question_params
    params.require(:question).permit(:question, :sort, :visible, :multiple_choice)
  end

end
```
assistant