Google Groups Home
Help | Sign in
Expected XYZcontroller.rb to define XYZ
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Rajat Garg  
View profile
 More options May 11, 2:45 pm
Newsgroups: comp.lang.ruby
From: Rajat Garg <raja...@gmail.com>
Date: Sun, 11 May 2008 13:45:30 -0500
Local: Sun, May 11 2008 2:45 pm
Subject: Expected XYZcontroller.rb to define XYZ
[Note:  parts of this message were removed to make it a legal post.]

Hi Guys,

I have a page - http://www.pilotoutlook.com/flying_club/dosearch

which was working fine and then I changed the code and I started having some
issues. So, I reverted it back but I am still having following errors -

Processing ApplicationController#dosearch (for 24.16.111.232 at 2008-05-11
01:23:12) [GET]
  Session ID: 879c894e2c7e646b380cd53b259833db
  Parameters: {"action"=>"dosearch", "controller"=>"flying_club"}

LoadError (Expected /usr/rails/app/controllers/flying_club_controller.rb to
define FlyingClubController):

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependen cies.rb:249:in
`load_missing_constant'

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependen cies.rb:452:in
`const_missing'

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependen cies.rb:464:in
`const_missing'

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/inflecto r.rb:250:in
`constantize'

I have a flying_club_controller.rb which has following code -

class FlyingClubController  < ApplicationController
def dosearch
..
end

..
end

FlyingClubController is defined, so why is it complaining. Please advise.

--
Rajat Garg

Ph: 206-499-9495
Add: 16140 SE EastGate Way APT E-204
Bellevue, WA 98008
Web: http://www.pilotoutlook.com
--------------------------------------------------------------------------- --------------------------
Flying is the second greatest thrill known to man. Landing is the first!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jos Backus  
View profile
 More options May 11, 2:54 pm
Newsgroups: comp.lang.ruby
From: Jos Backus <j...@catnook.com>
Date: Sun, 11 May 2008 13:54:55 -0500
Local: Sun, May 11 2008 2:54 pm
Subject: Re: Expected XYZcontroller.rb to define XYZ

On Mon, May 12, 2008 at 03:45:30AM +0900, Rajat Garg wrote:
> LoadError (Expected /usr/rails/app/controllers/flying_club_controller.rb to
> define FlyingClubController):

One scenario: flying_club_controller.rb require's some file (perhaps in a
helper) which has a problem. Look there.

Btw, this is the Ruby language list; please ask Rails-related questions on the
Rails mailing lists/fora.

--
Jos Backus
jos at catnook.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google