datamapper/datamapper.github.com — pull request #29 by dmarkow (2012-01-05 00:04:37+00:00)
Title: Rails templates that more closely mirror a standard non-DM Rails app.

This addresses Issue #28. Currently, while the rails templates do specify Rails 3.1, they remove support for Assets/Sprockets, resulting in a broken app (stylesheets/javascript fail to function properly).

I've also updated this to act more like a default Rails 3.1 application. I think it's misleading to the user, especially if they're new to rails, to turn off support for some Rails components (ActionMailer, ActiveResource), Testing (encouraging RSpec over TestUnit), and JS (jquery-rails) by default; it's my belief that the only thing these templates should do is swap out DataMapper for ActiveRecord, and leave everything else identical to a vanilla Rails 3.1 application. And this exclusion is not consistent; for example, the `require 'action_mailer/railtie'` and `require 'active_resource/railtie'` lines are both commented out, but only the `actionmailer` gem is included in the `Gemfile`.

This might be a bigger philosophy discussion on what to include/not include by default... maybe having two sets of templates, one "opinionated" template with stripped down Rails components, RSpec instead of TestUnit, etc., and then one nearly identical to Rails' default settings? If everyone feels that would be better, I can update the pull request with two sets of templates.