Displaying 20 results from an estimated 1000 matches similar to: "Acts_as_Taggable"
2006 Apr 07
0
acts_as_taggable and tag list
Hi,
I''m using the new acts_as_taggable on Rails 1.1.1. I would like to get a list of all the tags for a particular model type, in my case "Post". I got it to work with:
Tag.find(:all,:include => :taggings, :conditions => "taggable_type=''Chunk''")
But I''m wondering if there''s a more Rubyish elegant way.
thanks, scott.
2006 Aug 07
3
Acts_as_taggable / Rails Recipes bug?
I''m following the acts_as_taggable chapter from the Rails Recipes book.
I want my view form to have a text_field that correlates to an attribute
in the Model that accepts a string of space delimited tags. The book
uses tag-_list, but from what I can tell this attribute can''t be written
to. I''ve added this to the plugin code itself - am I missing something,
is there a
2008 Feb 26
1
problem with posting with acts as taggable on steroids
hi all
i''m trying to have a post with tags included but i''m getting
undefined method `tag_with''
i''ve already added acts_as_taggable to the model
and on the controller the code for creating the post is:
def create
@post = Post.new(params[:post])
@post.tag_with(params[:tag_list])
@post.user = current_user
if @post.save
redirect_to
2007 Jul 22
2
Seek brilliant Rails programmer to add one field to acts_as_taggable
I''m on the downhill side of a large project that requires an
additional integer field to be added to the tag.rb in
acts_as_taggable. I feel I have a good understanding of ActiveRecord
and have performed the correct migrations.
(As a short background for those following this thread) when one wants
to add tags to a model they call the ''tag_with'' method that jumps into
2006 Apr 03
5
Newbie question about acts_as_taggable
I installed the acts_as_taggable plugin that DHH wrote.
Now I have met problems on using it:
class Book < ActiveRecord::Base
acts_as_taggable
end
mybook = Book.new
mybook.tag_with(''red library book'')
But the system tell the wrong message:
undefined method `parse'' for Tag:Class
d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1123:in
2006 Jun 06
5
[OT] O''Reilly Cookbooks
Hi,
Has anyone gotten the "roughcuts" of the Ruby and Rails cookbooks? If you have the Pragmattic Rails Cookbook is the O''Reilly worth it? Also can you download PDF''s of their "roughcuts". The website is kind of vague, it just mentions online access (whatever that means).
Thanks in advance.
2006 Feb 11
1
Fastcgi and mysql woes
Hi,
I have been heck of a time to get mysql and fastcgi to
work properly on my Mac OS X box. I keep getting the
following error: Can''t connect to local MySQL server
through socket ''/opt/local/var/run/mysql5/mysqld.sock''
(13)
I have even tried commenting out the "socket" option
in my database.yml but it still gives me the same
error. I''m ok when I
2008 Dec 11
1
help needed regaring Acts As Taggable On Steroids
Hello,
In my rails application, I have a book model.
I want to add tags. For that I have installed
acts_as_taggable_on_steroids from this link
http://agilewebdevelopment.com/plugins/acts_as_taggable_on_steroids
and do as the readme file.
This is my Model :
class Book < ActiveRecord::Base
acts_as_taggable
end
Here is my ApplicationHelper :
module
2006 Jun 21
1
Adding routes via plugins
Hi,
I''m attempting to add a route via a plugin. I attempted to add the following to my init.rb:
myroute = ActionController::Routing::Routes.connect "boo2", :controller=>''plugin'', :action=>''index''
puts "path=#{myroute.path}"
myroute.options.keys.each do |k|
puts "#{k}=#{myroute.options[k]}"
end
The newly
2006 Apr 13
2
Automatic finder
It looks rails automatically creates a "finder" method on models that have a "belongs_to". So I tried this in the console:
c = Category.find(2)
chunks = Chunk.find_by_category(c)
chunks is always returned as an empty array. When I know have some chunks with a category_id of 2.
Should the find_by_category do what I think it should be doing or am I completely off base?
2006 Sep 27
1
acts_as_taggable with single-table inheritance?
Does anyone have any experience making this work? I installed the
plugin and tried the following:
class SomeClass < ActiveRecord::Base
acts_as_Taggable
end
class SubClass1 < SomeClass
end
class SubClass2 < SomeClass
end
SubClass1.tag_with("tag")
and notice that taggable_type = SomeClass
when I do SubClass2.find_tagged_with("tag") a SubClass1 object is
2006 Feb 07
1
acts_as_taggable plugin: more delimiters?
I''m going through the Recipes book and got to the Tagging chapter,
wanted to give it a shot. According to the text, tag_with takes a
space-delimited list of tags. Is there a way to use different
delimeters, such as commas or single quotes? Some tags can
potentially have more than one word, such as ''ice cream''. I''d like to
be able to use those without doing
2006 Jun 16
4
duplicate entry issue in acts_as_taggable gem
Hi,
I am using the ''acts_as_taggable'' gem and have issues when I try to
''tag'' an entity with a ''tagname'' already defined.
i.e
1) book[1].tag(''science'',''paperback'') --> works fine
2) book[2].tag(''roman'',''physics'',''paperback'') --> creates an
2006 Jun 20
1
Mongrel+Mint
Hi,
I''m attempting to migrate an app from Apache+FCGI to Apache+Mongrel. I''m using Apache 2.0 with the latest Mongrel release. I''m having an issue with the Mint stats package and Mongrel not picking up the following url: /mint/?js
Basically inside the /mint folder there is an index.php, so the url /mint/?js should really be going to /mint/index.php?js
When I had my
2006 Jun 20
1
Basic Architecture Questions
Hi,
First of all I love Mongrel and I want to say thanks!
My questions are related to how things work compared to Apache+FCGI background
1. With FCGI I would normally setup multiple FGI processes do I need to setup multiple Mongrel processes? Or is Mongrel thread based? Does the --num-procs flag work the same way?
2. Is there one database connection per process?
Thanks in advance.
2006 Jun 13
0
[OT] Rico Live Grid
Hi,
I was curious if anyone has implemented Rico''s Live Grid (ajaxed html tables)? Do you like it? Do your users like it?
cheers,
scott
----------------------------------------------------------------------------------------------------
What''s an Intel chip doing in a Mac? A whole lor more that it''s ever done in a PC.
My Digital Life -
2006 Jun 20
0
Quiet the Logger in 1.1
I''m using Rails 1.1 and I''m trying to quiet the logger. I searched the mailing list and placed the following inside my environment.rb:
RAILS_DEFAULT_LOGGER.level = (RAILS_ENV == ''production'' ? Logger::INFO : Logger::DEBUG)
But I keep getting:
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'':
2006 Jun 23
1
@request.env and mongrel
Hi,
I don''t know if this question should be posted here on the Rails list or the Mongrel list, but I''ll try here first. I had been using Aapache+FCGI and when I run the following code from my server''s domain "perficient.com" it returns "perficient.com:80":
port = @request.env["SERVER_PORT"]==''80'' ? '''' :
2006 Feb 12
7
ROR Recipes Beta: Why use taggings instead of tags_contacts? NoMethodError tag_with?
I have gotten acts_as_taggable to work for a test application as documented on taggable.rubyforge.org
I am following Chad''s excellent examples in ROR Recipes Beta book.
I have a few questions and hope that Chad or some other expert can help clarify them.
1. Why is the book suggesting to use taggings table instead of tags_contacts, as mentioned on taggable.rubyforge.org?
2006 Sep 18
3
Automatic reindexing of associated columns acts_as_taggable
Hi,
So i''m trying to use acts_as_taggable with the acts_as_ferret plugin,
where I have Post.rb model, which has a method tag_list made available
through acts_as_taggable, as returns a string of associated tag words
from the tags table (tag.rb). I''ve set up my Post.rb model in the
following way.
class Post < ActiveRecord::Base
acts_as_taggable
acts_as_ferret