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

Projects
None yet
2 participants
@thecatwasnot
Contributor

thecatwasnot commented Mar 31, 2010

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

This comment has been minimized.

Show comment Hide comment
@thecatwasnot

thecatwasnot Apr 6, 2010

Contributor

Fixed in 1.4.3

Contributor

thecatwasnot commented Apr 6, 2010

Fixed in 1.4.3

@BeenaShetty

This comment has been minimized.

Show comment Hide comment
@BeenaShetty

BeenaShetty Jun 10, 2013

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

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

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