search for: tagged_with

Displaying 7 results from an estimated 7 matches for "tagged_with".

2010 Jan 05
2
Conditional named_scope chaining with params (Need help)
Hello there, I have a model that has more then one named_scope. In my action Index of the controller that handle this model I want to do this in a drier way: if params[:ownership] == "mine" @posts = Post.tagged_with(params[:tags], :on => :tags).owner(current_user.id).paginate :all, :page => params[:page], :order => ''created_at DESC'' else @posts = Post.tagged_with(params[:tags], :on => :tags).paginate :all, :page => params[:page], :order => ''created_at DE...
2012 Feb 22
1
Collect users who posted items with ActsasTaggable on Tag in rails 3
I am using Rails 3 and Acts as taggable on in my application. I am fetching the articles associated with the tag by Article.tagged_with("tagname") and Blog.tagged_with("tagname") Now i would like to collect all the users from the above i.e.., people who are all posted articles and blogs with this tag Please suggest me.. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are...
2010 Jan 15
1
Chaining queries in ActiveRecord
Hi all, Stuck at this problem for several days. Tried to use named_scope, scope_out, and plugin such as searchlogic, but no result. The problem is as follows: I have a pic table and tag table, and a join table called pic_tag (with only pic_id and tag_id) so that I can associate N pics to M tags. This is the tutorial way to set up a many- to-many association. I''m trying to implement a
2006 Apr 01
3
acts_as_taggable, wrong number of arguments
Hello, When I try: @tagged_items = Problem.find_tagged_with :all => ''kuba'' or @tagged_items = Problem.tags_count :limit => 100 I get this error: ArgumentError in Volume#index wrong number of arguments (2 for 3) RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace /usr/local/lib/ru...
2010 Jun 24
0
Using searchlogic with acts_as_taggable_on
...as_taggable_on Merchant has_many Items, and i try to find Merchant with search logic including the tags class Merchant < ActiveRecord::Base acts_as_taggable has_many :items end class Item < ActiveRecord::Base acts_as_taggable belongs_to :merchant end This works >> Merchant.tagged_with(''Tag 1'') but this doesn''t >> Merchant.tagged_with_or_name_like(''Tag 1'') Searchlogic::NamedScopes::OrConditions::UnknownConditionError: The condition ''tagged_with'' is not a valid condition, we could not find any scopes that match...
2011 Mar 15
1
Acts as taggable on ( tag ownership question )
...acts_as_taggable_on :locations end @some_user.tag(@some_photo, :with => "paris, normandy", :on => :locations) @some_user.owned_taggings @some_user.owned_tags @some_photo.locations_from(@some_user) but I would like to be able to do something like @some_photo.tagged_with("xxx, yyy", :from => @some_user) but I can''t quite see how to do it from the current API. Regards Brad -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-tal...
2010 Nov 16
15
acts_as_taggable, undefined method 'empty?'
I''ve tried out ''acts_as_taggable'', ''acts_as_taggable_on'' and ''acts_as_taggable_on_steroids'' and all of them output "undefined method ''empty?''" with the tag_cloud action. I am following the guides precisely. Yet I can find no references to this error anywhere, so I must be doing something wrong... I am on