Class | FeedbacksController
In: | app/controllers/feedbacks_controller.rb
Parent: | ApplicationController

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 update

### Public Instance methods

destroy()

[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

edit()

[Source]

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

update()

[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]