Forum: Ruby on Rails NameError - uninitialized constant

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5e197c8f7663929dd8c2d978f0f0d0eb?d=identicon&s=25 David Smit (dawie)
on 2007-04-27 03:42
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
075aca22a962c95ea5dabcf9a11962be?d=identicon&s=25 Tim Teng (tim_teng)
on 2007-04-27 04:24
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.
075aca22a962c95ea5dabcf9a11962be?d=identicon&s=25 Tim Teng (tim_teng)
on 2007-04-27 04:27
or you misspelled
     url_for :action=>'xxxx',:controller => 'workspacecontroller'
but it should be
     url_for :action=>'xxxx',:controller => 'workspace'
i suppose.
5e197c8f7663929dd8c2d978f0f0d0eb?d=identicon&s=25 David Smit (dawie)
on 2007-04-27 04:32
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...
This topic is locked and can not be replied to.