Sha256: 316ae4c424c878596ae9802ac29a8a02c1f74ae37bcf083d75a5449ca47c06a1
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 Bytes
Contents
module Blog::PostsHelper def post_seo_path(post) full_post_path(post.year, post.month, post.day, post.to_param) end def post_seo_url(post) full_post_url(post.year, post.month, post.day, post.to_param) end def post_rss(post) output = [] post.images.each do |image| output << image_tag(image.attachment.url, :alt => image.alt) end output << post.rendered_body output.join("\n").html_safe end def date_full(date) date.strftime('%A %B %d, %Y').gsub(/\s0/, ' ') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_essential_blog-0.1.0 | app/helpers/blog/posts_helper.rb |
spree_essential_blog-0.1.0.rc1 | app/helpers/blog/posts_helper.rb |