Sha256: 8d0a5da60be98e8de2c1a2da42ca91720ce7d009a38136e6eefcfd653607b203
Contents?: true
Size: 566 Bytes
Versions: 4
Compression:
Stored size: 566 Bytes
Contents
module Admin::BlogPosts2Helper def extra_right_column_links_for_index(blog_post) link_to( 'New comment', { :controller => 'admin/comments', :action => 'new', :comment => {:blog_post_id => blog_post.id} } ) end def publish_value(blog_post) blog_post.published? end def tags_string(blog_post) blog_post.tags.map { |tag| tag.tag }.join ' ' end def user_css_class_for_index_td(blog_post) 'custom_td_css_class' end def css_class_for_index_tr(blog_post) 'custom_tr_css_class' end end
Version data entries
4 entries across 3 versions & 1 rubygems