This project is archived and is in readonly mode.
Rails template should allow to specify framework parts
Reported by seban | November 24th, 2009 @ 07:54 PM
Rails template should allow to specify without which parts
generate application.
For example. I don't want to use ActiveRecord so I could write in
template
without_framework :active_record
And in app generated with such a template in
config/environment.rb I will have
config.frameworks -= [ :active_record ]
I tried to do some workaround for it but I can't find Rails::TemplateRunner class in rails master git repo.
Comments and changes to this ticket
-
Roland Moriz April 11th, 2010 @ 04:06 AM
- Assigned user set to Ryan Bigg
Support of modifying environment.rb with rails templates commands is iirc limited to add "config.gem" options with gem(),
But of course you can put any ruby code in your template file to read+change+write the environment.rb file or do what you like.
(or use run() and any console command)good sources:
http://m.onkey.org/2008/12/4/rails-templates
http://github.com/ffmike/BigOldRailsTemplate -
Ryan Bigg April 11th, 2010 @ 04:09 AM
- State changed from new to invalid
As Roland suggests, code your own environment.rb (or in the case of Rails 3, application.rb) and use that as a template.
-
Craig Buchek April 13th, 2010 @ 01:24 AM
- Tag changed from app, template to app, feature_request, template
- Assigned user changed from Ryan Bigg to Eloy Duran
-
Craig Buchek April 13th, 2010 @ 01:24 AM
- Assigned user changed from Eloy Duran to Ryan Bigg
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>