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, options = {})
  article_permalink_path(article.published_at.year,article.published_at.month,article.published_at.day,article.permalink,options)
end

#article_url(article, options = {}) ⇒ Object



8
9
10
# File 'lib/articles.rb', line 8

def article_url(article, options = {}) 
  article_path(article, options.merge(:only_path => false)) 
end