Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails template should allow to specify framework parts

#3509

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.

Reported by seban · November 24th, 2009 @ 07:54 PM

State: invalid
Milestone: none
Assigned to: Ryan Bigg Ryan Bigg
Importance: none

Activity

  1. Roland Moriz
    Roland Moriz
    • 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

    April 11th, 2010 @ 04:06 AM

  2. Ryan Bigg
    Ryan Bigg
    • 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.

    April 11th, 2010 @ 04:09 AM

  3. Craig Buchek
    Craig Buchek
    • Tag changed from app, template to app, feature_request, template
    • Assigned user changed from Ryan Bigg to Eloy Duran

    April 13th, 2010 @ 01:24 AM

  4. Craig Buchek
    Craig Buchek
    • Assigned user changed from Eloy Duran to Ryan Bigg

    April 13th, 2010 @ 01:24 AM