Class: MessagesController
- Inherits:
-
ReaderActionController
- Object
- ApplicationController
- ReaderActionController
- MessagesController
- Defined in:
- app/controllers/messages_controller.rb
Instance Method Summary collapse
- #index ⇒ Object
-
#preview ⇒ Object
mock email view called into an iframe in the :show view the preview template calls @message.preview, which returns the message body wrapped in the layout defined by the Notifier: layout here is false so that we don’t add another one.
- #show ⇒ Object
Methods inherited from ReaderActionController
#default_welcome_url, #logged_in?, #logged_in_admin?, #logged_in_user?, #permission_denied
Instance Method Details
#index ⇒ Object
8 9 10 |
# File 'app/controllers/messages_controller.rb', line 8 def index render end |
#preview ⇒ Object
mock email view called into an iframe in the :show view the preview template calls @message.preview, which returns the message body wrapped in the layout defined by the Notifier: layout here is false so that we don’t add another one
21 22 23 |
# File 'app/controllers/messages_controller.rb', line 21 def preview render :layout => false end |
#show ⇒ Object
12 13 14 |
# File 'app/controllers/messages_controller.rb', line 12 def show render end |