Class: FeedbackController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/feedback_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject

show the feedback form



8
9
10
11
12
13
14
15
16
17
# File 'app/controllers/feedback_controller.rb', line 8

def show
  @nav_li_active = 'contact'
  @errors=[]
  if request.post?
    if validate
      Notifier.feedback(params).deliver_now
      redirect_to feedback_complete_path
    end
  end
end