I get this problem when I run this code in the server Local Host Everything is going fine in But when I deploy my code in server it shows me an error I am using ferret search in the model.
Identification of name in Competitive Controller # index
Undefined Continuous Contestant Controller :: Contestant << Strong>
/ home / troche / mrecip_tool / releases / 20091219131859 / App / Controller Compactors_ Controller Rb: 19: `In Index '
My Controller
Class Competitive Controller & lt;
Autoconfirmed: Dependent, Competitive AutoComplete: fee_aner,: fee_USA
security_frame_forgery: only => [: tag]
/ P>
before_filter: login_required ,: only => [: index, show: new, edit]
@@ total_company = 70
def index @ comet = contestant .find (all) ### Getting this error in this line
Do not answer. Format | Format.html # index.html.erb format.xml {Render: xml = & gt; @compet} End
Termination
def Show @competitor = Contestant.Find (Param [: ID])
response_to do | Format | Format.html # show.html.erb format.xml {Render: xml = & gt; @competitor} end
end
end
my model is
Class Competitive & lt; ActiveRecord :: Base
validates_presence_of: fee_earner_id, Notes:
related_to: fee_Amerar belongs_to: country is_to: state belongs_to: user
actions_as_ferret: fields => [: Competitive, Customer :: Subject_meter],: Remote => True
End
In the error code, change competitors
:: contests
clearly tell what you want.
Comments
Post a Comment