aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-07-12 16:39:33 -0500
committerJoe Sak <joe@joesak.com>2011-07-12 16:39:33 -0500
commitc82a32ed3e3cc45e3425ae360b8a537a6ad367a1 (patch)
tree6daba14d6a69249836717f71d12035ecee0aa32c /app/views
parent8aad45e5b04121a63760edec98fb2205a9111b48 (diff)
downloadrefinerycms-blog-c82a32ed3e3cc45e3425ae360b8a537a6ad367a1.tar.gz
refinerycms-blog-c82a32ed3e3cc45e3425ae360b8a537a6ad367a1.tar.bz2
refinerycms-blog-c82a32ed3e3cc45e3425ae360b8a537a6ad367a1.zip
this is the 'railscasts' way of handling the category checkboxes
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/blog/posts/_form.html.erb2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb
index ffb790d..c891b63 100644
--- a/app/views/admin/blog/posts/_form.html.erb
+++ b/app/views/admin/blog/posts/_form.html.erb
@@ -70,8 +70,6 @@
<ul class='blog_categories'>
<% @blog_categories.each do |category| %>
<li>
- <%= hidden_field_tag 'blog_post[category_ids][]', category.id,
- :value => 0 %>
<%= check_box_tag 'blog_post[category_ids][]', category.id,
@blog_post.categories.include?(category),
:id => (id="blog_post_category_ids_#{category.id}") %>