Created
May 18, 2020 15:21
-
-
Save johnivanoff/d1dfd8f9c7a5239136419c8f29789191 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def setup | |
generate(:controller, "welcome index") | |
route "root to: 'welcome#index'" | |
generate("devise:install") | |
generate("devise User") | |
environment 'config.action_mailer.default_url_options = { host: "localhost", port: 3000 }', env: 'development' | |
rails_command("db:migrate") | |
end | |
gem 'devise' | |
after_bundle do | |
git :init | |
git add: "." | |
git commit: %Q{ -m 'Initial commit' } | |
setup | |
git add: "." | |
git commit: %Q{ -m 'set up devise' } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment