aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-06-30 16:40:59 -0500
committerJoe Sak <joe@joesak.com>2011-06-30 16:40:59 -0500
commitba071d3776f50b28bd37725ef01e6479d10d2977 (patch)
tree7de2095a281e130d51570d1aca60041cd3a597f7 /app/views
parentaa727f6ccfb3aafb78d3ea08cb0446ade80df0d6 (diff)
downloadrefinerycms-blog-ba071d3776f50b28bd37725ef01e6479d10d2977.tar.gz
refinerycms-blog-ba071d3776f50b28bd37725ef01e6479d10d2977.tar.bz2
refinerycms-blog-ba071d3776f50b28bd37725ef01e6479d10d2977.zip
don't know how we got away with this not being here
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/blog/posts/_form.html.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb
index c891b63..ffb790d 100644
--- a/app/views/admin/blog/posts/_form.html.erb
+++ b/app/views/admin/blog/posts/_form.html.erb
@@ -70,6 +70,8 @@
<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}") %>