views:

145

answers:

1

Im trying to implement roles feature to my app that already has authlogic working... Im following this tutorial but now Im getting an error "stack level too deep" when I try to run my app...

SystemStackError in Users#new

Showing app/views/users/_form.erb where line #2 raised:

stack level too deep

Extracted source (around line #2):

1: <%= form.label :login %><br />
2: <%= form.text_field :login %><br />

Please help

+2  A: 

Check if your user model doesn't have instance method named login that calls itself.

Eimantas