Sha256: e0eb34039e5cb8c0563c92707fa3dbf2eb93365ecd4b2dda5bcec0c6a40b314a
Contents?: true
Size: 670 Bytes
Versions: 9
Compression:
Stored size: 670 Bytes
Contents
module Blogo # Note, +_path+ postfix is avoided to not mess helper methods and routes. module ApplicationHelper include Rails.application.routes.url_helpers # Path to a page or a page in scope of a particular tag. # # @param page [Integer] # @param tag [String, nil] # # @retun [String] def path_to_page(page, tag = nil) if tag blogo_tag_page_path(tag, page) else blogo_page_path(page) end end # Post overview. # # @param post [Blogo::Post] # # @return [String] def post_overview(post) post.html_overview ? post.html_overview : post.html_content end end end
Version data entries
9 entries across 9 versions & 1 rubygems