You need to sign in to do that
Don't have an account?
jeffdonthemic2
Heroku Crash: No such file to load -- Accounts
I have my Rails app running like a champ locally with the REST API. However, it crashes on Heroku. I tried Quinton's code again from his omniauth-rails3-forcedotcom project and it crashes on Heroku with the same error. I've search for two days now and am finally giving up and asking for help. Here's the log from Heroku:
==> dyno-7328866.log (crash) <== /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:304:in `rescue in depend_on': No such file to load -- Accounts (LoadError) from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:299:in `depend_on' from /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:216:in `require_dependency' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/engine.rb:138:in `block (2 levels) in eager_load!' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/engine.rb:137:in `each' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/engine.rb:137:in `block in eager_load!' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/engine.rb:135:in `each' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/engine.rb:135:in `eager_load!' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/application.rb:108:in `eager_load!' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/application/finisher.rb:41:in `block in <module:Finisher>' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/initializable.rb:25:in `instance_exec' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/initializable.rb:25:in `run' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/initializable.rb:50:in `block in run_initializers' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/initializable.rb:49:in `each' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/initializable.rb:49:in `run_initializers' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/application.rb:134:in `initialize!' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/lib/rails/application.rb:77:in `method_missing' from /app/config/environment.rb:5:in `<top (required)>' from <internal:lib/rubygems/custom_require>:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require' from config.ru:3:in `block (3 levels) in <main>' from /home/heroku_rack/heroku.ru:23:in `eval' from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:46:in `instance_eval' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:63:in `new' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:63:in `map' from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:46:in `instance_eval' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize' from /home/heroku_rack/heroku.ru:11:in `new' from /home/heroku_rack/heroku.ru:11:in `block in <main>' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:46:in `instance_eval' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize' from /home/heroku_rack/heroku.ru:1:in `new' from /home/heroku_rack/heroku.ru:1:in `<main>' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `eval' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `load' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:175:in `load_rackup_config' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:65:in `start' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/bin/thin:6:in `<top (required)>' from /usr/ruby1.9.2/bin/thin:19:in `load' from /usr/ruby1.9.2/bin/thin:19:in `<main>'
Thanks for the helping a ruby n00b out!
Jeff Douglas
Appirio, Inc.
you need to add the following to the top of your accounts_controller.rb
require 'Accounts'
Have you tried my project 'asf-rest-adapter'? It has some of these objects build into it. Of course SSO comes from Q's project on Github.
I added require 'Accounts' but no joy. Still the same error.
Thanks
Jeff
Solved! It needs to be all lowercase. The following solved the issue.
require 'accounts'
Jeff Douglas
Appirio, Inc.
http://blog.jeffdouglas.com
http://www.cloudspokes.com