Closed eanlain closed 9 years ago
:+1: @bcroesch , In the result it can be
def active_blog_item_class(blog)
'class="active"'.html_safe if params[:blog_id] == blog.slug && params[:controller] == "storytime/dashboard/posts"
end
or
def active_blog_item_class(blog)
'class="active"'.html_safe if params[:blog_id] == blog.slug && controller_name == "posts"
end
@eanlain other than the one comment, looks good. Feel free to merge after that.