Sha256: ae3e3b2ca74a8ad3a034d6f40a31e9147d7873645e082bf0f7d4ee7733425eff
Contents?: true
Size: 697 Bytes
Versions: 5
Compression:
Stored size: 697 Bytes
Contents
module BlogHelper def spud_post_category_select return select_tag('category_url_name', options_from_collection_for_select(SpudPostCategory.ordered, :url_name, :name, params[:category_url_name]), {:prompt => 'All Categories'}) end def spud_post_archive_select return select_tag 'archive_date', options_for_select(SpudPost.months_with_public_posts.collect{ |d| [d.strftime('%B %Y'), d.strftime('%Y-%b').downcase] }, params[:archive_date]), :prompt => 'All Dates', :rel => 'archive' end def spud_blog_rss_link return tag :link, :rel => 'alternate', :type => 'application/rss+xml', :title => "#{Spud::Core.site_name} Blog RSS", :href => posts_path(:format => :rss) end end
Version data entries
5 entries across 5 versions & 1 rubygems