Permalink
Browse files

Removed before_filters for tags controller and using tag_list for gal…

…lery
  • Loading branch information...
1 parent ad8135d commit 8d7cb68bc792a70d28e2cc3b2cab43a1eba1a8fb @amitamb committed Mar 29, 2012
Showing with 14 additions and 1 deletion.
  1. +13 −0 app/controllers/tags_controller.rb
  2. +1 −1 app/views/galleries/new.html.haml
@@ -1,4 +1,17 @@
class TagsController < ApplicationController
+
+ skip_before_filter :set_iframe_status
+ skip_before_filter :set_p3p_header
+ skip_before_filter :set_current_tab
+ skip_before_filter :set_current_sub_tab
+ skip_before_filter :set_ad_layout
+ skip_before_filter :set_locale
+ skip_before_filter :set_outbrain_item
+ skip_before_filter :set_auto_discovery_rss
+ skip_before_filter :update_last_active
+ skip_before_filter :check_post_wall
+ skip_before_filter :verify_request_format
+
def suggest
q = params[:query]
suggestions = ActsAsTaggableOn::Tag.find(:all, :select => :name, :conditions => ["name like ?", "#{q}%"] ).collect { |t| t.name }
@@ -11,7 +11,7 @@
= form.input :title
= form.input :description, :input_html => { :rows => 5 }
= form.input :is_public, :required => false, :hint => t('galleries.public_hint')
- = form.input :tags_string, :label => t('tags'), :required => false, :hint => t('tags_hint'), :as => :tags
+ = form.input :tag_list, :label => t('tags'), :required => false, :hint => t('tags_hint'), :as => :tags
- @gallery.gallery_items.build if @gallery.gallery_items.empty?
= form.semantic_fields_for :gallery_items do |item_form|
- if @enable_file_uploads

0 comments on commit 8d7cb68

Please sign in to comment.