search for: tags_resourc

Displaying 4 results from an estimated 4 matches for "tags_resourc".

Did you mean: tags_resources
2006 Jan 30
2
:condition not being applied
I am using acts_as_taggable and everything seems to be working except that :condition => "tags_resources.portal_id=#{portal_id}" is not being applied. @resource_pages = Paginator.new self, Resource.find_tagged_with(:any => tag, :condition => "tags_resources.portal_id=#{portal_id}").length, 25, @params[''page'']; @resources = Resource.find_t...
2006 Jan 22
2
acts_as_taggable: weird SQL problem with untagging
...----------------------------------------------------------------------------- And I''m trying to remove a tag from all files belonging to the current user: def delete_tag tag = @params[:tag] affected = Resource.find_tagged_with({ :any => tag, :conditions => "tags_resources.user_id = #{session[:user].id}" }) affected.each {|res| a = res.tag_names - [tag] a = ["untagged"] if a.empty? res.tag a, :clear => true, :attributes => { :user_id => @session[:user].id } } redirect_to :action => ''list'...
2005 Oct 17
0
acts_as_taggable and per-user tags
...---------- sqlite> .schema CREATE TABLE resources ( id INTEGER PRIMARY KEY, filename VARCHAR(255), user_id integer ); CREATE TABLE ''tags'' ( ''id'' INTEGER PRIMARY KEY NOT NULL, ''name'' VARCHAR(80) DEFAULT NULL ); CREATE TABLE ''tags_resources'' ( ''id'' integer primary key not null, ''tag_id'' integer not null, ''resource_id'' integer not null, ''user_id'' integer not null ); CREATE TABLE ''users'' ( ''id...
2006 Aug 29
1
acts_as_taggable question
Hi folks, I was using the acts_as_taggable gem in my application. However recently I accidentally ran gem install acts_as_taggable and now my application is giving errors complaining about missing tables resources_tags Before running the gem install command, I had tables named as tags_resources. Why am I now getting these errors? Has there been a change in acts_as_taggable gem? Why would it reverse the table name? Please assist as I am stumped.... Thanks, Frank --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Gr...