[Rails-core] New stuff discussed

Tobias Luetke
2005-09-09T13:55:39Z

Hey guys great job on the new environment.rb dsl and rakefile.
I switched shopify over to the new layout and here are some thoughts:

  * The environment.rb doesn''t set the RAILS_ENV anymore. In the typo
world the most common way to set typo to production mode is to change
the default to production in the environment.rb. Most of the time
people install on shared host and can''t influence the ENV vars the
server passes to the apps.

  * The new environment.rb should have more inline documentation.
Routes.rb did a good job by being mostly self documenting, how about
figuring out the most common modifications to the standard config and
leaving them as comments in the file?

  * The rake file looks in config/tasks. I don''t think that rake
tasks really have anything to do with the config. I think there is
some value in keeping this directory as lean as possible because this
is what end users of rails apps have to work with who are not
necessarily familar with rails itself. We ship with a lib folder by
default so what about lib/tasks? Fits better in my book because you
will most likely bring your favorite rake tasks from project to
project which makes them great fits for the lib directory.

  * boot.rb is a good file but doesn''t really have anything to do
with config/ maybe move it to config/environment/ ?

  * The project local generators path was broken until recently so if
we will introduce a lib/tasks folder this would be a good opportunity
to move the generators to lib/generators as well. This way you don''t
mess up tab compleation for ./script/g<tab>


--
http://www.snowdevil.ca      - Snowboards that don''t suck
http://typo.leetsoft.com        - Open source blog software
http://blog.leetsoft.com     - Technical weblog