Skip to content

Instantly share code, notes, and snippets.

@SomeKay
SomeKay / app_template.rb
Last active August 29, 2015 14:07 — forked from DamirSvrtan/app_template.rb
Added slim layout file and removed erb layout file
### Rails app generator template. Run it:
### rails new _app_name_ -m https://gist.githubusercontent.com/DamirSvrtan/28a28e50d639b9445bbc/raw/app_template.rb
bin_setup_file = <<-FILE
#!/bin/sh
bundle install
bundle exec rake db:setup
FILE
File.open('bin/setup', 'w'){|file| file.write(bin_setup_file)}