Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed before_filters for tags controller and using tag_list for gal…

…lery
  • Loading branch information...
commit 8d7cb68bc792a70d28e2cc3b2cab43a1eba1a8fb 1 parent ad8135d
Amit Ambardekar authored
13 app/controllers/tags_controller.rb
View
@@ -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 }
2  app/views/galleries/new.html.haml
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.