Sha256: 51244cc8d8d603836c89a02f76ab9c61e51d4b7cb77c44c6c49bcee1e654a083

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

require_dependency "devmail/application_controller"

module Devmail
  class MessagesController < ApplicationController
    def index
      @messages = Devmail.messages
    end

    def show
      @message = Devmail.find_message(params[:id])
    end

    def html_part
      @message = Devmail.find_message(params[:id])
      render text: @message.html_part
    end

    def send_test
      Sample.test.deliver
      redirect_to action: :index
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devmail-0.1.0 app/controllers/devmail/messages_controller.rb