Fixed Rails project template (#1)

Posted by ericp on 2007-05-22 14:35

The Ruby on Rails project template we shipped with version 4.1 has a
work-losing bug -- if you run it in the directory of an existing
Rails project, it recreates the top-level helpers and application.rb
file, as well as the database.yml config file.

This attached template checks to see if it's about to be installed
in an existing Rails project, and doesn't run the rails
command if this is the case.

The "#" above is intended to anticipate future improvements, not
just more bug fixes.

Ruby on Rails.kpz40.63 KB