Class: Hyalin::MessagesController
- Inherits:
-
HyalinController
- Object
- ApplicationController
- HyalinController
- Hyalin::MessagesController
- Defined in:
- app/controllers/hyalin/messages_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /messages POST /messages.json.
-
#new ⇒ Object
GET /message/new GET /message/new.json.
Instance Method Details
#create ⇒ Object
POST /messages POST /messages.json
16 17 18 19 20 |
# File 'app/controllers/hyalin/messages_controller.rb', line 16 def create = Message.new params[:message] .save respond_with , location: after_send_path, notice: t('hyalin.messages.sent_success') end |
#new ⇒ Object
GET /message/new GET /message/new.json
9 10 11 12 |
# File 'app/controllers/hyalin/messages_controller.rb', line 9 def new = Message.new respond_with end |