Displaying 3 results from an estimated 3 matches for "m000006".
Did you mean:
3000006
2006 Oct 09
1
acts_as_ferret: case insensitive search
How can I index and search RoR model objects in a case insensitive
manner? In Ferret there is the LowerCaseFilter
(http://ferret.davebalmain.com/api/classes/Ferret/Analysis/LowerCaseFilter.html).
How can I utilize it and other filters with acts_as_ferret?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 18
1
Globalize: :select option not allowed on translatable models
Hi all
I got the following error after trying to get the Globalize plugin to
work:
:select option not allowed on translatable models
What could be the problem? I just created a plain new Rails app,
installed Globalize through SVN, migrated the DB schema, created a
scaffold for Product, and edited the Product model like the following:
class Product < ActiveRecord::Base
translates :name,
2006 Nov 06
21
acts_as_ferret and associations
I have the following models:
class Book < ActiveRecord::Base
acts_as_ferret
belongs_to :author
end
class Author < ActiveRecord::Base
has_many :books
end
and in the controller:
def search
if params[:query]
@query = params[:query]
@total, @books = Book.full_text_search(@query, :page =>
(params[:page]||1))
@pages =