Displaying 5 results from an estimated 5 matches for "topic_titl".
Did you mean:
  topic_title
  
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 =
2006 Nov 28
17
Index not being updated
My index is not being updated when I add new records or amend existing
ones.
Can anyone point me in the direction of where I should be looking for
what is going wrong?
I''m running this in the production environment.
-- 
Posted via http://www.ruby-forum.com/.
2008 Jan 15
7
PHP indexing, what's the PHP method for indexscript
Currently I have the following indexscript:
pid : unique=Q boolean=Q field=pid
postdate : field=startdate
author_name: unhtml boolean=XAUTHORNAME field=author
author_id: boolean=XAUTHORID field=authorid
url :  field=url
sample : weight=1 index field=sample
How can I create the same indexing using PHP?
With this, I can get an searchable index, but I have no idea how to set the fields, so that I
2006 Nov 20
22
Index only partially built
I have an application which I''m running using Mongrel and Apache as 
described here http://www.napcs.com/howto/rails/deploy/.
I have a model Person which I am attempting to use acts_as_ferret with.
When I first try to do a search the index begins to get built but it its 
fails halfway through with the following error in the browser:
===
Proxy Error
The proxy server received an invalid
2005 Dec 16
12
validates_presence_of not working
Hi,
I''m new to ruby and rails. I just created a simple update page and the 
update works fine if all form fields are filled in. However there is one 
field that should never be allowed to be blank. So I put this in my 
model:
class Topic < ActiveRecord::Base
  validates_presence_of :dr_title
  validates_length_of :dr_title, :minimum => 1
So, when I submit the form with a blank