Class: Manage::FeedbacksController

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

Instance Method Summary collapse

Instance Method Details

#createObject



15
16
17
# File 'app/controllers/manage/feedbacks_controller.rb', line 15

def create
  create!{ manage_feedbacks_path }
end

#destroyObject



23
24
25
# File 'app/controllers/manage/feedbacks_controller.rb', line 23

def destroy
  destroy!{ manage_feedbacks_path }
end

#showObject



9
10
11
12
13
# File 'app/controllers/manage/feedbacks_controller.rb', line 9

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

#updateObject



19
20
21
# File 'app/controllers/manage/feedbacks_controller.rb', line 19

def update
  update!{ manage_feedbacks_path }
end