From c171e4c00c25a3abd1fedc5cd9b371d8e9051410 Mon Sep 17 00:00:00 2001 From: manson Date: Tue, 13 May 2014 15:40:35 +0800 Subject: [PATCH] Update category and tag --- app/views/admin/galleries/_form.html.erb | 23 ++++++++--------------- lib/gallery/engine.rb | 14 ++++++++++++++ 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/app/views/admin/galleries/_form.html.erb b/app/views/admin/galleries/_form.html.erb index 0f212b8..1c2e502 100644 --- a/app/views/admin/galleries/_form.html.erb +++ b/app/views/admin/galleries/_form.html.erb @@ -15,13 +15,13 @@
- + @@ -33,9 +33,9 @@
- +
- <%= f.select(:category_id, @categories.collect {|p| [ p.title, p.id ] }) %> + <%= select_category(f, @module_app) %>
@@ -45,21 +45,14 @@
- -
- <%@tags.each do |tag|%> - - <%end %> -
+ + <%= select_tag(f, @module_app) %>
- +