# Login Generator Error

**URL:** <https://www.ruby-forum.com/t/login-generator-error/140988>\
**Category:** Rails\
**Created:** [June 20, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/login-generator-error/140988 "2008-06-20T14:59:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![frozzare](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@frozzare](https://www.ruby-forum.com/u/frozzare)\
**Post date:** [June 20, 2008, 2:59pm UTC](https://www.ruby-forum.com/t/login-generator-error/140988/1 "2008-06-20T14:59:40Z")

</div>

Hi.

I have install the Login Generator, but i get a error.

NoMethodError

undefined method `model’ for ApplicationController:Class

require\_dependency “login\_system”  
class ApplicationController \< ActionController::Base  
include LoginSystem  
model :user

and in the Models folder there is a user model.  
Models/user.rb

Thanks for help 🙂

---

<div class="post-metadata">

**Author:** ![frozzare](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@frozzare](https://www.ruby-forum.com/u/frozzare)\
**Post date:** [June 20, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/login-generator-error/140988/2 "2008-06-20T15:43:51Z")

</div>

Any :/?

---

<div class="post-metadata">

**Author:** ![frozzare](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@frozzare](https://www.ruby-forum.com/u/frozzare)\
**Post date:** [June 20, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/login-generator-error/140988/3 "2008-06-20T17:48:51Z")

</div>

no idea about login generator… but try using restful authentication…  
it will work like a charm

Ajit

On Jun 20, 9:43 am, Fredrik F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![frozzare](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/45deac/32.png) [@frozzare](https://www.ruby-forum.com/u/frozzare)\
**Post date:** [June 24, 2008, 1:45am UTC](https://www.ruby-forum.com/t/login-generator-error/140988/4 "2008-06-24T01:45:13Z")

</div>

Back in the old days, you specified a model for a given controller,  
but that’s no longer the custom (because controllers don’t map 1:1 to  
models, necessarily).

Just remove the line that says:

model :user

The fact that it’s there suggests that you’ll have other issues making  
the generator 2.0 friendly, though.

Deirdre
