RailsApps / rails_apps_composer

A gem with recipes to create Rails application templates for Rails starter apps.
http://railsapps.github.io/rails_apps_composer/
1.42k stars 306 forks source link

composing example applications fails with Rails 5.2 #366

Closed DanielKehoe closed 6 years ago

DanielKehoe commented 6 years ago

Rails 5.2 beta is out and I tried generating the 'learn-rails' example applications. It fails:

init  recipe stage three
insert    config/secrets.yml
The template [https://raw.github.com/RailsApps/rails-composer/master/composer.rb] 
could not be loaded.
Error: The file /Users/danielkehoe/workspace/wip/myapp/config/secrets.yml 
does not appear to exist
DanielKehoe commented 6 years ago

I've updated the rails_apps_composer gem and released a new version of Rails Composer that fixes this issue by creating a config/secrets.yml file for Rails 5.2. There's a new encrypted credentials feature in Rails 5.2 but we still can use the config/secrets.yml approach for setting configuration variables.