complex-form-examples icon indicating copy to clipboard operation
complex-form-examples copied to clipboard

Can't get Rails to work from Git

Open timClicks opened this issue 15 years ago • 5 comments

Hi there -

I get the following error, do you have any suggestions to configure the app once it's been cloned from the git?

$ rake db:migrate (in /home/tim/Development/learning/railsform/complex-form-examples) rake aborted! no such file to load -- /home/tim/Development/learning/railsform/complex-form-examples/config/../vendor/rails/railties/lib/initializer /home/tim/Development/learning/railsform/complex-form-examples/Rakefile:4 (See full trace by running task with --trace)

$ script/server ./script/../config/boot.rb:45:in require': no such file to load -- ./script/../config/../vendor/rails/railties/lib/initializer (LoadError) from ./script/../config/boot.rb:45:inload_initializer' from ./script/../config/boot.rb:38:in run' from ./script/../config/boot.rb:11:inboot!' from ./script/../config/boot.rb:109 from script/server:2:in `require' from script/server:2

timClicks avatar May 22 '09 23:05 timClicks

I got it working by removing the vendor/rails folder (it's empty anyway), and adding a log folder.

(also had to comment out the RAILS_GEM_VERSION line in the environment.rb file so that it'd use my current 2.3.2 version of rails, but you may not need to do this)

taktran avatar Jun 08 '09 01:06 taktran

Rails is included as a sub module. Run "git submodule init", "git submodule update"

annaswims avatar Jul 28 '09 19:07 annaswims

can you add vendor/rails to .gitignore and add an empty log dir to the project to solve this issue?

plukevdh avatar Dec 09 '09 17:12 plukevdh

"git submodule init", "git submodule update"

This worked perfect for me. Thanks.

pglombardo avatar Dec 28 '10 21:12 pglombardo

Would be nice if that were in the README.

turadg avatar Jan 26 '11 02:01 turadg