开发者

restful_authentication deployment to Heroku - Name Error

开发者 https://www.devze.com 2023-01-04 05:40 出处:网络
When I deploy my rails app (which uses restful_authentication), to Heroku, I get the following errors:

When I deploy my rails app (which uses restful_authentication), to Heroku, I get the following errors:

/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in `const_missing': uninitialized constant User::Authentication (NameError)
 from /disk1/home/slugs/216145_64fa92e_1859/mnt/app/models/user.rb:4
 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
 from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
 from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:265:in `require_or_load'
 from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:224:in `depend_on'
 from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:136:in `require_dependency'
 from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:414:in `load_app开发者_如何学运维lication_classes'
  ... 23 levels...
 from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval'
 from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `initialize'
 from /home/heroku_rack/heroku.ru:1:in `new'
 from /home/heroku_rack/heroku.ru:1

How can I get it working?


Have you installed the gem "restful_authentication" on Heroku? The error message suggests that it is not present.


I'm groping here, especially because you didn't put up the full traceback.

However,there may be something to do with cache_template_extensions.

http://www.mail-archive.com/heroku@googlegroups.com/msg02172.html talks about it, in regard to your problem, and http://forums.pragprog.com/forums/66/topics/2484 mentions it as an issue when upgrading to 2.3.2.

Bottom line: find that line in your code (development.rb or somewhere near there) that refers to cache_template_extensions, and remove it.

Good luck.


Thanks everyone! It looks like it was a problem down at Heroku's end. I contacted their support and they had to do something.

It works now. :)

0

精彩评论

暂无评论...
验证码 换一张
取 消