Sha256: ffe023c30b7bd9ad032cd26b9800a60f5c0d0ec4176b0bd49576f3221c0a91e6
Contents?: true
Size: 365 Bytes
Versions: 6
Compression:
Stored size: 365 Bytes
Contents
class PostsController < BaseController 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 html: email.body.to_s.html_safe end private def goodnight_moon "Goodnight, moon!" end helper_method :goodnight_moon end
Version data entries
6 entries across 6 versions & 1 rubygems