Class: Manage::FeedbacksController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/manage/feedbacks_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



17
18
19
# File 'app/controllers/manage/feedbacks_controller.rb', line 17

def create
  create!{ manage_feedbacks_path }
end

#destroyObject



25
26
27
# File 'app/controllers/manage/feedbacks_controller.rb', line 25

def destroy
  destroy!{ manage_feedbacks_path }
end

#showObject



11
12
13
14
15
# File 'app/controllers/manage/feedbacks_controller.rb', line 11

def show
  @feedbacks = @feedback.siblings
  @feedback_answer = FeedbackAnswer.new
  respond_with(@feedbacks)
end

#updateObject



21
22
23
# File 'app/controllers/manage/feedbacks_controller.rb', line 21

def update
  update!{ manage_feedbacks_path }
end