Repository URL to install this package:
|
Version:
0.4.0 ▾
|
module NeotericNews
module PostsHelper
def post_path(post)
@post = post
news_post_path(post_path_parts)
end
def post_url(post)
@post = post
news_post_url(post_path_parts)
end
private
def post_path_parts
{ :year => date.year,
:month => date.month,
:id => post.slug }
end
def date
post.published_at
end
def post
@post
end
end
end