Skip to content

Instantly share code, notes, and snippets.

<% content_for :body_content_page_title, "#{@news_item.title}" -%>
<% content_for :body_content_left do %>
<%= @news_item.body %>
<span class="right date"><small>Published <%= @news_item.publish_date.strftime("%A %d of %B, %Y") %></small></span>
<p>
<%= link_to "Back to all news", news_items_url %>
</p>
<% end %>
<% content_for :body_content_right do %>