Displaying 20 results from an estimated 27 matches for "tag_list".
2006 Nov 17
3
acts_as_ferret + :tag_list, how to use it?
hello,
i am currently using acts_as_ferret in one of my applications and now
would like to also incorproate tags. i came across somesones blog that
had this:
//////
Having Ferret index method results (like :tag_list) worked
out-of-the-box for me with acts_as_ferret. I specified attributes (table
columns) as strings and methods as symbols, like so:
acts_as_ferret :fields => [?title?, :tag_list]
I?ve had issues with corrupted indexes and various platform-related
problems, but indexing and searching has b...
2008 Feb 26
1
problem with posting with acts as taggable on steroids
...;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 root_url
else
render :action => ''new''
end
end
and the form on the view has the tagging code:
<p><label for="tag_list">Tags</label><br/>
<%= text_field_...
2006 Aug 07
3
Acts_as_taggable / Rails Recipes bug?
...ld 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 better way?
def tag_list=(s)
self.tag_with(s)
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060807/14801ed2/attachment.html
2008 Dec 11
1
help needed regaring Acts As Taggable On Steroids
...:
module ApplicationHelper
include TagsHelper
end
And I couldn''t get the idea what should I add in the controller to save
tags(please guide me to save tags) . I just try to follow the readme and
Edited part of BookController is:
def create
@book = Book.new(params[:book])
@book.tag_list # []
@book.tag_list = "Funny, Silly"
respond_to do |format|
if @book.save
flash[:notice] = ''Book was successfully created.''
format.html { redirect_to(@book) }
format.xml { render :xml => @book, :status => :created,
:location =&...
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 :fields => ["title", "descrip...
2007 Jul 06
0
Removing One Element From a Serialized Form
...shown (removed Session ID for brevity):
Processing PostsController#update (for 127.0.0.1 at 2007-07-03
18:53:46) [PUT]
Parameters: {"commit"=>"Publish",
"post"=>{"title"=>"asdfasdfadfaf", "body"=>"afdasdf", "tag_list"=>"",
"teaser"=>"adsfadf"}, "_method"=>"put", "action"=>"update", "id"=>"1",
"controller"=>"posts"}
Attempting to remove a key from the serialized hash blows everyth...
2009 Jan 01
1
HasManyThroughCantAssociateNewRecords Exception
I have a model:
class Video < ActiveRecord::Base
has_many :video_tags
has_many :video_types
has_many :tags, :through => :video_tags, :uniq => :true
has_many :types, :through => :video_types, :uniq => :true
def get_tag_list(delimiter)
tags.collect { |t| t.tag }.join(delimiter)
end
def set_tag_list(tag_list, delimiter)
# doesn''t remove old tags
tag_list.split('','').each do |t|
tags << Tag.find_or_create_by_tag(t)
end
end
end
When I call
@video.set_tag_list(p...
2008 Feb 21
4
undefined method `save' for :Array
hi all
when i m trying to save my tags.this error s cmng........cn anybody
help me to how to save the array
error depicting = undefined method `save'' for []:Array
--~--~---------~--~----~------------~-------~--~----~
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
2006 Apr 07
1
Acts_as_Taggable
A couple of quick acts_as_taggable (the Rails 1.1 plugin version)
1. Can you update tags on an existing record?
If I execute the tag_with statement twice it creates two rows in the taggings column, instead of updating the value of the existing tag
2. Can you delete tags? I didn''t see a method for this. If I can delete tags, problem #1 goes away.
scott.
2006 Oct 15
1
acts_as_attachment and tagging?
hi, i read this:
http://www.johnnysthoughts.com/2006/08/27/ruby-on-rails-using-full-text-search-with-tagging/
does this mean i do not have to install the acts_as_taggable plugin? all
i need to do is something like this is my model class?
acts_as_ferret :field=>[''name'', :tag_list]
--
Posted via http://www.ruby-forum.com/.
2006 Dec 26
0
acts_as_taggable Plugin issue (not gem)
...gt;"2006-11-30 18:16:40", "id"=>"1", "description"=>"supa
sexy description", "filename"=>nil, "element_type_id"=>"3",
"created_at"=>nil}]
But this does not (because there is no value in params[:tag_list]:
> @elements = Element.find_tagged_with(params[:tag_list])
NameError: undefined local variable or method `params'' for
#<Object:0x1f59f0>
from (irb):4
from :0
</code>
--~--~---------~--~----~------------~-------~--~----~
You received this message because...
2007 Nov 16
1
problem with searching plurals (with apostrophe)
...et gem(0.11.4 Latest)
on rails 1.2.5 and ruby 1.8.6(UBUNTU Gutsy)
i have this
:Stores Model
acts_as_ferret :fields => {:name => { :boost => 2 ,:store => :yes},
:short_desc => { :boost => 1.5,:store =>
:yes },
:tag_list => {:boost => 1 },
:name_for_sort => {:index => :untokenized}
}
and i search using this code in my Stores controller
@products = Store.find_by_contents params[:q].to_s.upcase+"*"
for e.g i have a Stores with nam...
2007 Jul 13
8
More sorting problems with untokenized index
...index description:
acts_as_ferret
:remote=>true,:fields=>{:name=>{:boost=>2},:name_for_sort=>{:index =>
:untokenized},
:city=>{:boost=>2}, :city_for_sort=>{:index=>:untokenized},
:state=>{:boost=>2}, :state_for_sort=>{:index=>:untokenized},
:tag_list=>{:boost=>0},:tag_list_for_sort=>{:boost=>0},
:date_summary=>{:boost=>1},
:date_for_range=>{:boost=>0},
:start_date=>{:boost=>0}}
When I sort on name_for_sort it works fine.
City_for_sort however causes problems. Here is a random offset. There
are 16,000...
2008 Dec 10
3
rspecing rjs - form.reset(''form'')
Hello,
>
> I couldn''t find much info on this.
>
> How do you rspec this: page.form.reset("form")
>
> I looked in the have_rjs source code and I can''t find anything on form
> reset.
>
> Thanks,
>
> --
> Andrei
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2017 Nov 21
0
4.14: WARNING: CPU: 4 PID: 2895 at block/blk-mq.c:1144 with virtio-blk (also 4.12 stable)
...uhp_online_new);
+ blk_mq_queue_reinit_work();
+ return 0;
+}
+
static int __blk_mq_alloc_rq_maps(struct blk_mq_tag_set *set)
{
int i;
@@ -2757,7 +2841,7 @@ static void __blk_mq_update_nr_hw_queues(struct blk_mq_tag_set *set,
blk_mq_update_queue_map(set);
list_for_each_entry(q, &set->tag_list, tag_set_list) {
blk_mq_realloc_hw_ctxs(set, q);
- blk_mq_queue_reinit(q);
+ blk_mq_queue_reinit(q, cpu_online_mask);
}
list_for_each_entry(q, &set->tag_list, tag_set_list)
@@ -2966,6 +3050,16 @@ static bool blk_mq_poll(struct request_queue *q, blk_qc_t cookie)
return __blk_mq_p...
2017 Nov 21
2
4.14: WARNING: CPU: 4 PID: 2895 at block/blk-mq.c:1144 with virtio-blk (also 4.12 stable)
On 11/21/2017 07:39 PM, Jens Axboe wrote:
> On 11/21/2017 11:27 AM, Jens Axboe wrote:
>> On 11/21/2017 11:12 AM, Christian Borntraeger wrote:
>>>
>>>
>>> On 11/21/2017 07:09 PM, Jens Axboe wrote:
>>>> On 11/21/2017 10:27 AM, Jens Axboe wrote:
>>>>> On 11/21/2017 03:14 AM, Christian Borntraeger wrote:
>>>>>> Bisect
2017 Nov 21
2
4.14: WARNING: CPU: 4 PID: 2895 at block/blk-mq.c:1144 with virtio-blk (also 4.12 stable)
On 11/21/2017 07:39 PM, Jens Axboe wrote:
> On 11/21/2017 11:27 AM, Jens Axboe wrote:
>> On 11/21/2017 11:12 AM, Christian Borntraeger wrote:
>>>
>>>
>>> On 11/21/2017 07:09 PM, Jens Axboe wrote:
>>>> On 11/21/2017 10:27 AM, Jens Axboe wrote:
>>>>> On 11/21/2017 03:14 AM, Christian Borntraeger wrote:
>>>>>> Bisect
2006 Apr 13
0
Model with file uploads
...ield_video.read.empty?
end
def after_create
self.tag_with self.all_tags
# upload field_video and upload field_thumb
end
def after_update
self.tag_with self.all_tags
end
def after_delete
# delete video and thumb files
end
def tags
# return formatted tags from tag_list
end
def thumb
# return full thumb url
end
def video
# return full video url
end
end
--
Posted via http://www.ruby-forum.com/.
2006 Mar 29
3
tagtools vs acts_as_taggable
tagtools and acts_as_taggable are both folksonomy tools for rails,any
one who has used them both and can give a compare between them?
Grateful!
--
Posted via http://www.ruby-forum.com/.
2006 Oct 09
3
How could acts_as_taggable work with ferret?
Suppose that acts_as_taggable need three models: Tag, Tagging, Article
Could tag search be realized using acts_as_ferret?
Suppose tags:"a","ab","abc",If i wanted to get all the articles with tag
name including "a", Could ferret satifisy this requirement?
--
Posted via http://www.ruby-forum.com/.