ryanb / rails-templates

Template scripts for creating new rails applications.

This URL has Read+Write access

rails-templates / authentication.rb
100644 8 lines (5 sloc) 0.241 kb
1
2
3
4
5
6
7
8
load_template "http://github.com/ryanb/rails-templates/raw/master/base.rb"
 
name = ask("What do you want a user to be called?")
generate :nifty_authentication, name
rake "db:migrate"
 
git :add => ".", :commit => "-m 'adding authentication'"