Welcome Guest | Login

Problems with rails freeze and gems

We've frozen rails and tried to install acts_as_paranoid, following the tutorial. Evenrything seems to be install OK but but we're now getting that 'We're sorry but something went wrong' error. The logs say the following

# Logfile created on Sun Mar 25 23:37:43 -0500 2007 by logger.rb/1.5.2.9
undefined local variable or method `acts_as_paranoid' for Notebook:Class
../config/../vendor/rails/activerecord/lib/active_record/base.rb:1235:in `method_missing'
../config/../app/models/notebook.rb:7
/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'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:104:in `require_or_load'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
../config/../vendor/rails/actionpack/lib/action_controller/deprecated_dependencies.rb:54:in `require_dependencies'
../config/../vendor/rails/actionpack/lib/action_controller/deprecated_dependencies.rb:52:in `each'
../config/../vendor/rails/actionpack/lib/action_controller/deprecated_dependencies.rb:52:in `require_dependencies'
../config/../vendor/rails/actionpack/lib/action_controller/deprecated_dependencies.rb:12:in `model_without_deprecation'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/deprecation.rb:94:in `model'
../config/../app/controllers/application.rb:9
/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'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:104:in `require_or_load'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
../config/../vendor/rails/railties/lib/dispatcher.rb:110:in `prepare_application'
../config/../vendor/rails/railties/lib/dispatcher.rb:39:in `dispatch'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:168:in `process_request'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:143:in `process_each_request!'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:109:in `with_signal_handler'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:142:in `process_each_request!'
/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'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:141:in `process_each_request!'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:55:in `process!'
../config/../vendor/rails/railties/lib/fcgi_handler.rb:25:in `process!'
dispatch.fcgi:24

so it looks like it's not installed properly.

Can someone help here?

2007-03-25 11:46 PM

Hi there,

Could you please check it once again. If you are still getting the same error please let us know the exact link to reproduce the error. Thank you.

2007-03-26 12:57 AM

In your vendor folder, do you have acts_as_paranoid frozen as a gem (i.e. it would be in vendor/) or as a plugin (i.e. it would be at vendor/plugins) ?

2007-03-26 02:10 AM

Sorry, should have said that the account is under the name gluenote and reproducing the error can be done by going to www.gluenote.com.

acts_as_paranoid is in the vendor folder, but not in the way described - instead of it being installed under the plugins subfolder, it has it's own folder, so its

vendor/acts_as_paranoid-0.3.1

2007-03-26 09:29 AM

Any further followup on this?

2007-03-26 03:54 PM

I'd probably recommend pulling out the gem from your app so things are up - then deploying to a test subdomain to get it working.  Have people ever used it as a plugin? (i.e. in /vendor/plugins/acts_as_paranoid ) ?

2007-03-26 04:04 PM

We can't pull it, it's now tightly integrated into the new source and several new features require it.
We currently run it as a plugin on our development servers - it's not acts_as_paranoid that's a problem.

2007-03-26 04:29 PM

I would suggest emailing support and having them install the gem on the server for you - then removing it from your app to see if that works -- other than that I'm out of ideas without looking at your setup.  I hope you're able to get it squared away.  

2007-03-26 05:27 PM

We wrote them about this same problem last night and so far not a single response back, other than the canned response. Our previous attempts to reach tech support have bought similar silence, so let's just say I'm not holding my breath.

2007-03-26 05:43 PM

OK - after hours and hours of going back and forth we think we have it working. It appears that in order for the plugin to be recognized we had to unfreeze rails and then freeze it again - I have no idea why, it was a shot in the dark.
Perhaps this might be something others have run into (or will run into).

2007-03-26 06:28 PM


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