Skip to content

Instantly share code, notes, and snippets.

@johnivanoff
Created May 18, 2020 15:21
Show Gist options
  • Save johnivanoff/d1dfd8f9c7a5239136419c8f29789191 to your computer and use it in GitHub Desktop.
Save johnivanoff/d1dfd8f9c7a5239136419c8f29789191 to your computer and use it in GitHub Desktop.
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