To hide stories from the home page that have been tagged with certain tags, check them below.
<% if !@user %>Since you are not logged in, your filters will be stored in a long-lasting browser cookie. To permanently store your tag filters and have them work across browsers, login to your account.
<% end %> <%= form_tag "/filters", :method => :post do %>Hide | Tag | Description | Stories |
---|---|---|---|
<%= check_box_tag "tags[]", tag.tag, @filtered_tags.include?(tag) %> | <%= link_to tag.tag, tag_path(tag), :class => tag.css_class %> | <%= tag.description %> | <%= tag.stories_count %> |
<%= submit_tag "Save Filters" %>
<% end %>