| Class | FeedbacksController |
| In: |
test/functional/feedbacks_controller_test.rb
app/controllers/feedbacks_controller.rb |
| Parent: | Object |
Feedback is created in the portal by authenticated and anonymous users, see OtherController.feedback. This controller together with SitesController is used to manage feedback, see SitesController.feedback
# File app/controllers/feedbacks_controller.rb, line 40
40: def destroy
41: Feedback.find(params[:id]).destroy
42: logger.info("destroy en dan #{request.referer}")
43: redirect_to request.referer
44: end
# File app/controllers/feedbacks_controller.rb, line 26
26: def edit
27: @feedback = Feedback.find(params[:id])
28: end
# File app/controllers/feedbacks_controller.rb, line 30
30: def update
31: @feedback = Feedback.find(params[:id])
32: if @feedback.update_attributes(params[:feedback])
33: flash[:notice] = 'Feedback was successfully updated.'
34: redirect_to @feedback.request_referer
35: else
36: render :action => 'edit'
37: end
38: end