error in installing login generator

The preferred way if installing this kind of functionality is through the plugin system:

ruby script/plugin install login_generator

The gem might be out of date.

Jason