Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 3 - no such file to load -- config/environment #1

Open
noctivityinc opened this issue Apr 12, 2010 · 1 comment
Open

Rails 3 - no such file to load -- config/environment #1

noctivityinc opened this issue Apr 12, 2010 · 1 comment

Comments

@noctivityinc
Copy link

Received this when trying to run in Rails 3 beta 2

10:22 PM ~/projects/todotopia => rake db:annotate
(in /Users/jlippiner/Projects/todotopia)
rake aborted!
no such file to load -- config/environment

(See full trace by running task with --trace)


@noctivityinc
Copy link
Author

For rails 3, you want to use

require Rails.root.join("config","environment")

to get it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant