Skip to content

Instantly share code, notes, and snippets.

@wikimatze
Last active October 14, 2018 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wikimatze/3544f45cec1d2ac1eec6555dc9e2d378 to your computer and use it in GitHub Desktop.
Save wikimatze/3544f45cec1d2ac1eec6555dc9e2d378 to your computer and use it in GitHub Desktop.
padrino blog tutorial show.haml
%section.articles
.column.is-8.is-offset-2
.card.article
.card-content
.media
.media-content.has-text-centered
%h3.title.article-title= @post.title
.tags.has-addons.level-item
%span.tag.is-rounded= time_ago_in_words(@post.created_at || Time.now) + ' ago'
.content.article-body
= simple_format(@post.body)
%p= link_to 'View all posts', url_for(:posts, :index)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment