Displaying 3 results from an estimated 3 matches for "tag_string".
Did you mean:
pa_string
2006 Sep 14
1
acts_as_ferret with has_many :through relationships?
I am currently using acts_as_ferret to search on a Posts table (title
and content fields). These posts also have tags (with has_many :tags,
:through => :questions_tags). I can''t figure out how to get
acts_as_ferret to work with that relationship and allow searching of
title, content, And tags at the same time (with the ability to set
boost as well). Can this be done?
--
Posted via
2005 Dec 28
1
making has_and_belongs_to_many save more elegant
When a user creates a post I also want to save all the tags
associated with it. I do that in the post_controller like this
presently:
def save
@post = Post.new(@params[:post])
@tags = Tag.new(@params[:tags])
@post.user_id = session[:id]
if @post.save
@tags.title.split('','').each do |tag|
present_tag = Tag.find_by_title(tag.strip)
present_tag =
2007 Mar 26
6
[AAF] acts_as_ferret 0.4.0 released
Hi folks!
Just wanted to let you know that I released aaf 0.4.0 on last weekend.
Besides the DRb server it also includes a new lazy loading feature that
lets you do ferret searches without actually loading any records from the
DB. Useful e.g. for live searches:
model:
class MyModel
acts_as_ferret :fields => { :title => { :store => :yes }, :content => {} }
end
controller: