Making presenters easy and fun!
config.load_paths += %W( #{RAILS_ROOT}/app/presenters )
class PostPresenter < Presenter def title "#{original_title} - <span class='date'>#{created_at.strftime('%B %d')}</span>" # reference old values by prefixing them with original_ end end
@post = Post.find(params[:id]).presenter
<h2><%= @post.title %></h2> <p>@post.body</p>