class PostsController < ApplicationController def show @post = Post.find(params[:id]).decorate end def mail post = Post.find(params[:id]) email = PostMailer.decorated_email(post).deliver render text: email.body end end