Class: FeedbackController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

current

Instance Method Details

#createObject


6
7
8
9
10
11
12
13
# File 'app/controllers/feedback_controller.rb', line 6

def create
  if params[:message].present?
    Mailer.feedback(current_user, params[:message]).deliver_now
    redirect_to root_url, notice: t('feedback.create.notice')
  else
    render :action => 'new'
  end
end

#newObject


3
4
# File 'app/controllers/feedback_controller.rb', line 3

def new
end