Class: Contact::MessagesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Contact::MessagesController
- Defined in:
- app/controllers/contact/messages_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
12 13 14 15 16 |
# File 'app/controllers/contact/messages_controller.rb', line 12 def create @message = Message.new(params[:message]) MessageMailer.(@message).deliver if @message.valid? respond_with json: @message end |