Skip to content

Instantly share code, notes, and snippets.

@lgs
Created April 25, 2010 16:24
Show Gist options
  • Save lgs/378517 to your computer and use it in GitHub Desktop.
Save lgs/378517 to your computer and use it in GitHub Desktop.
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