binarylogic/authlogic_example

Undefined method to_key

Closed this issue · 1 comments

I keep getting the following error in my login form:

NoMethodError in User_sessions#new

Showing /Users/alvincrespo/Sites/lajobr/app/views/user_sessions/_form.html.erb where line #1 raised:

undefined method `to_key' for #<UserSession: no credentials provided>

Extracted source (around line #1):

1: <%= form_for @user_session do |f| %>
2: <%= f.error_messages %>
3:
4:

I'm not sure what the issue may be. Any help would be great! Thanks!

I'm not sure if the problem has been fixed yet for Rails 3, but I found a post that apparently give a solution:

http://www.stjhimy.com/posts/6