Class: FeedbacksController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- FeedbacksController
- Defined in:
- app/controllers/feedbacks_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/controllers/feedbacks_controller.rb', line 10 def create @feedback = FeedbackMessage.new(params[:feedback]) @feedback. = current_user @feedback.save respond_with(@feedback, :location => root_path) end |
#new ⇒ Object
4 5 6 7 8 |
# File 'app/controllers/feedbacks_controller.rb', line 4 def new @feedback = FeedbackMessage.new @feedback. = current_user respond_with(@feedback) end |