Class: MessagesController

Inherits:
ReaderActionController show all
Defined in:
app/controllers/messages_controller.rb

Instance Method Summary collapse

Methods inherited from ReaderActionController

#default_welcome_url, #logged_in?, #logged_in_admin?, #logged_in_user?, #permission_denied

Instance Method Details

#indexObject



8
9
10
# File 'app/controllers/messages_controller.rb', line 8

def index
  render
end

#previewObject

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

#showObject



12
13
14
# File 'app/controllers/messages_controller.rb', line 12

def show
  render
end