Hi all

I am getting this error when I am using

acts_as_ferret :fields =>[:competitor], :remote => true

NameError in PartController#index

uninitialized constant PartController::Competitor

************************************
My Model

class Competitor < ActiveRecord::Base

  validates_presence_of :fee_earner_id, :notes

  belongs_to :fee_earner
  belongs_to :country
  belongs_to :state
  belongs_to :user

acts_as_ferret :fields =>[:competitor], :remote => true

end

*************************************
My controller

class PartController < ApplicationController


 @@total_company = 70

def index

 @proscribeds = Competitor.paginate(:all, :order => sort , :page =>
params[:page], :per_page => @@total_company )

end

end
-- 
Posted via http://www.ruby-forum.com/.

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to