Class: FeedbacksController

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

Instance Method Summary collapse

Instance Method Details

#createObject



10
11
12
13
14
15
16
# File 'app/controllers/feedbacks_controller.rb', line 10

def create
  @feedback = FeedbackMessage.new(params[:feedback])
  @feedback.author = current_user
  @feedback.save
  
  respond_with(@feedback, :location => root_path)
end

#newObject



4
5
6
7
8
# File 'app/controllers/feedbacks_controller.rb', line 4

def new
  @feedback = FeedbackMessage.new
  @feedback.author = current_user
  respond_with(@feedback)
end