Created
April 25, 2010 16:24
-
-
Save lgs/378517 to your computer and use it in GitHub Desktop.
This file contains 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
log 'Install devise gem 1.1.pre4' | |
inject_into_file "./Gemfile", :after => "# Bundle the extra gems:" do | |
"\n gem 'devise', '1.1.rc1' \n\n" | |
end | |
log 'Collect the gems your application requires' | |
run 'bundle install' | |
log 'Rails generate devise_install' | |
run "rails g devise_install" | |
run "rails g devise User" | |
run "rails g devise_views" | |
run "rake db:create db:migrate" | |
run "rails g controller home index" | |
inject_into_file "config/routes.rb", "\n\n root :to => 'home#index' \n", :after => "|map|" | |
log 'create mailer initializer' | |
file 'config/initializers/mailer.rb', <<-ACTIONMAILER | |
ActionMailer::Base.default_url_options[:host] = "localhost:3000" | |
ACTIONMAILER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment