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

Copyright (c) 2006 Logica

Methods

destroy   edit   rescue_action   update  

Public Instance methods

[Source]

    # 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

[Source]

    # File app/controllers/feedbacks_controller.rb, line 26
26:   def edit
27:     @feedback = Feedback.find(params[:id])
28:   end

[Source]

    # File test/functional/feedbacks_controller_test.rb, line 18
18:                            def rescue_action(e) raise e end

[Source]

    # 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

[Validate]