Class: Answers::AnswersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/answers/answers_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#after_sign_in_path_for, #redirect_to_back

Instance Method Details

#indexObject



6
7
8
9
# File 'app/controllers/answers/answers_controller.rb', line 6

def index
  @answers = Answer.all
  respond_with(@answers)
end

#showObject



11
12
13
# File 'app/controllers/answers/answers_controller.rb', line 11

def show
  respond_with(@answer)
end