Module: Beef::Articles::UrlHelper
- Defined in:
- lib/articles.rb
Instance Method Summary collapse
Instance Method Details
#article_path(article, options = {}) ⇒ Object
4 5 6 |
# File 'lib/articles.rb', line 4 def article_path(article, = {}) article_permalink_path(article.published_at.year,article.published_at.month,article.published_at.day,article.permalink,) end |
#article_url(article, options = {}) ⇒ Object
8 9 10 |
# File 'lib/articles.rb', line 8 def article_url(article, = {}) article_path(article, .merge(:only_path => false)) end |