NameError - uninitialized constant


#1

I just deployed my application on MediaTemple.

I get the following error and I am not sure what is wrong.

Processing ApplicationController#editor (for 68.147.211.95 at 2007-04-26
18:38:40) [GET]
Session ID: df1f7ec620eb87f057857c520c58851f
Parameters: {“action”=>“editor”, “controller”=>“workspace”}

NameError (uninitialized constant WorkspaceController):

Any ideas? My main controller is called WorkspaceController.

Thanks

David


#2

Have a look at the production.log , may be you can get some information.
Or start the server on local with webrick , it will show you more
information on console than mongrel.


#3

or you misspelled
url_for :action=>‘xxxx’,:controller => ‘workspacecontroller’
but it should be
url_for :action=>‘xxxx’,:controller => ‘workspace’
i suppose.


#4

Tim Teng wrote:

or you misspelled
url_for :action=>‘xxxx’,:controller => ‘workspacecontroller’
but it should be
url_for :action=>‘xxxx’,:controller => ‘workspace’
i suppose.

My code works perfectly on windows / mongrel. The moment I deploy it I
get the messages posted above…