Welcome Guest | Login

NameError problem on new app

Hi,

I've just opened a new account and am deploying a Ruby app that uses the ajax_scaffold_generator gem. I've tried freezing that gem as described in http://www.hostingrails.com/forums/wiki_thread/2 (although I'm not sure how creating the .gems directory relates to the rest of the instructions, but that's another story).  I've also tried putting the ajax_scaffold_generator code in vendor/, vendor/plugins, even the lib directory. After I restart the server and try to hit my temporary URL, I get the following error in log/production.log. The dispatchers have the proper interpreter specified, and permissions are set to 755.  If there's someone who can help me figure out where I went wrong, I'd appreciate it. Thanks.



Processing Base#index (for 66.108.196.12 at 2007-01-10 06:17:39) [GET]
 Session ID: db7837f5bacdfadc0d162bb5cce9faaa
 Parameters: {}


NameError (uninitialized constant AjaxScaffold):
   /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:100:in `const_missing'
   /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:131:in `const_missing'
   /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:133:in `send'
   /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:133:in `const_missing'
   /app/controllers/prizes_controller.rb:2
   /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
   /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
   /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in `require'
   /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:65:in `require_or_load'
   /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:30:in `depend_on'
   /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:85:in `require_dependency'
   /vendor/rails/actionpack/lib/action_controller/routing.rb:285:in `attempt_load'
   /vendor/rails/actionpack/lib/action_controller/routing.rb:281:in `each'
   /vendor/rails/actionpack/lib/action_controller/routing.rb:281:in `attempt_load'
   /vendor/rails/actionpack/lib/action_controller/routing.rb:237:in `traverse_to_controller'
   generated/routing/recognition.rb:7:in `recognize_path'
   /vendor/rails/actionpack/lib/action_controller/routing.rb:511:in `recognize!'
   /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch'
   /vendor/rails/railties/lib/fcgi_handler.rb:150:in `process_request'
   /vendor/rails/railties/lib/fcgi_handler.rb:54:in `process!'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each_cgi'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi'
   /vendor/rails/railties/lib/fcgi_handler.rb:53:in `process!'
   /vendor/rails/railties/lib/fcgi_handler.rb:23:in `process!'
   dispatch.fcgi:24


2007-01-10 06:27 AM

Hi there - if the gem is on the server then you do not *need* to freeze it - try getting it working without it in your app's filesystem (so remove it and rid your app of any include calls)

Let me know if that error still persists.  

Cheers,

~William

2007-01-10 12:07 PM

Hi William,

I'm afraid I get the same response. Thanks for your help.

2007-01-10 12:11 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.