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

New RuGUI app produces an error: no such file to load -- app/../config/environment #24

Closed
thecatwasnot opened this issue Mar 31, 2010 · 2 comments

Comments

@thecatwasnot
Copy link
Contributor

Reproduce:
$ rugui hellorugui
create
create README
create Rakefile
create bin
create bin/hellorugui
chmod bin/hellorugui
create bin/hellorugui.bat
chmod bin/hellorugui.bat
create app
create app/main.rb
create config
create config/environments/test.rb.sample
create config/environments/production.rb.sample
create config/environments/development.rb.sample
create config/boot.rb
create lib
create log
create vendor
create app/controllers
create app/controllers/application_controller.rb
create app/controllers/main_controller.rb
create app/views
create app/views/main_view.rb
create app/views/application_view.rb
create app/views/view_helpers/main_view_helper.rb
create app/views/view_helpers/application_view_helper.rb
create app/resources
create app/resources/styles/main.rc
create app/resources/glade/main_view.glade
create spec
create spec/spec.opts
create spec/rcov.opts
create spec/spec_helper.rb
$ cd hellorugui/
$ rake run
(in /home/pixel/code/hellorugui)
rake aborted!
no such file to load -- /home/pixel/code/hellorugui/app/../config/environment

The main.rb file is trying to load an environment file that doesn't exist in a basic application. Rails uses 2 kinds of environment files, the environment.rb file and then files like development.rb and test.rb for specific kinds of environments. There are sample development.rb, test.rb and production.rb files provided by RuGUI but no environment.rb

@thecatwasnot
Copy link
Contributor Author

Fixed in 1.4.3

@BeenaShetty
Copy link

Still there is an issue. I am using rugui (1.6.0).

It should be require File.join(File.expand_path('config') , 'environment')

This issue was closed.
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

2 participants