Skip to content

Instantly share code, notes, and snippets.

@ubermajestix
Created August 11, 2008 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ubermajestix/4922 to your computer and use it in GitHub Desktop.
Save ubermajestix/4922 to your computer and use it in GitHub Desktop.
def auto_complete_for_tag_name
puts "=="*45
puts "searching for tag: #{params[:tag][:name]}"
puts "=="*45
@tag_names = Ci::Sentiment::Tagging::TagName.search("#{params[:tag][:name]}")
render :partial => 'sources/tagname_autocomplete'
end
def find_collisions
@source = ::Ci::Sentiment::MessageExt::Source.find(params[:source_id])
@collisions = ::Ci::Sentiment::MessageExt::SourceCollision.count_active_collisions(:conditions => ["db_source_url = ? and status = 'N'", @source.url])
render :partial => "sources/collision_link"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment