- Home
- Technical Library
- Boards
- Cookbook
- Code Share
- Blogs
- Partners
-
More
-
Services
- Training & Certification
- Support
-
Galleries
- Force.com Sites Gallery
- Chatter Challenge Entries
-
Other Web Sites
- Salesforce.com
- Database.com
- AppExchange
- CRM Community
-
Discussions
- Announcements
- General Development
- Schema Development
- New to Cloud Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Mobile
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- REST API Integration
- Streaming API
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Site.com
- Jobs Board - Administrators
- Jobs Board - Developers
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Perl, PHP, Python & Ruby Development
- :
- Heroku Crash: No such file to load -- Accounts
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Heroku Crash: No such file to load -- Accounts
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-05-2011 03:23 AM
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/l ib/rails/engine.rb:138:in `block (2 levels) in eager_load!' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/rails/engine.rb:137:in `each' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/rails/engine.rb:137:in `block in eager_load!' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/rails/engine.rb:135:in `each' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/rails/engine.rb:135:in `eager_load!' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/rails/application.rb:108:in `eager_load!' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/rails/application/finisher.rb:41:in `block in <module:Finisher>' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/rails/initializable.rb:25:in `instance_exec' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/rails/initializable.rb:25:in `run' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/rails/initializable.rb:50:in `block in run_initializers' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/rails/initializable.rb:49:in `each' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/rails/initializable.rb:49:in `run_initializers' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/rails/application.rb:134:in `initialize!' from /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.5/l ib/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/r ack/builder.rb:46:in `instance_eval' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/r ack/builder.rb:46:in `initialize' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/r ack/builder.rb:63:in `new' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/r ack/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/r ack/builder.rb:46:in `instance_eval' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/r ack/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/r ack/builder.rb:46:in `instance_eval' from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.2/lib/r ack/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.
Re: Heroku Crash: No such file to load -- Accounts
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-10-2011 07:52 AM
you need to add the following to the top of your accounts_controller.rb
require 'Accounts'
Salesforce Developer Evangelist
twitter: @quintonwall
Re: Heroku Crash: No such file to load -- Accounts
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-10-2011 04:52 PM
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.
Re: Heroku Crash: No such file to load -- Accounts
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-12-2011 04:28 AM
I added require 'Accounts' but no joy. Still the same error.
Thanks
Jeff
Re: Heroku Crash: No such file to load -- Accounts
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-20-2011 03:30 AM
Solved! It needs to be all lowercase. The following solved the issue.
require 'accounts'
Jeff Douglas
Appirio, Inc.

