add devise gem
rails generate devise:install
add action_mailer config
change root_url to /surveys
add flash messages
rails generate devise:views
reorder routes
bundle exec rails generate devise User
don't allow users to register themselves
bundle exec rails generate surveyor:custom

This will be required to include devise authentication in the survey controller.
require authentication in survey controller
add blank lines to improve code style

squash! add blank line
bundle exec rake db:migrate
add devise_invitable gem
rails generate devise_invitable:install
rails generate devise_invitable User
bundle exec rake db:migrate
make invitations expire after 4 weeks
add admin/inviting users etc
Merge pull request #4 from despo/devise

Devise