Class: MessagesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- MessagesController
- Defined in:
- app/controllers/messages_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
Convenient method to create and check for spam.
Instance Method Details
#create ⇒ Object
Convenient method to create and check for spam
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/messages_controller.rb', line 4 def create = Georgia::Message.new() if .valid? and .save SpamWorker.perform_async(.id) end respond_to do |format| # FIXME: Add translated flash message on success and failure format.html { redirect_to :back } format.js { render layout: false } end end |