15 lines
330 B
Ruby
15 lines
330 B
Ruby
class FeedbackController < ApplicationController
|
|
|
|
def new
|
|
end
|
|
|
|
def create
|
|
if params[:message].present?
|
|
Mailer.feedback(current_user, params[:message]).deliver
|
|
redirect_to root_url, :notice => "Das Feedback wurde erfolgreich verschickt. Vielen Dank!"
|
|
else
|
|
render :action => 'new'
|
|
end
|
|
end
|
|
|
|
end
|