LoginGenerator in Ruby on Rails