Sha256: 4ab6915738f082301558c4047226ff45ecdda225080823e3ddf15f009fd170fe
Contents?: true
Size: 357 Bytes
Versions: 11
Compression:
Stored size: 357 Bytes
Contents
class PostsController < ApplicationController decorates_assigned :post def show @post = Post.find(params[:id]) end def mail post = Post.find(params[:id]) email = PostMailer.decorated_email(post).deliver render text: email.body end private def goodnight_moon "Goodnight, moon!" end helper_method :goodnight_moon end
Version data entries
11 entries across 11 versions & 4 rubygems