I did some research and I think the error is due to use of different argument conventions in Rails 3.1 as opposed to 3.0. How exactly should I go about fixing this?
wrong number of arguments (3 for 2)
Extracted source (around line #3):
1: <h2>Sign in</h2>
2:
3: <%= form_for(resource_name, resource, :url => session_path(resource_name)) do |f| %>
4: <p><%= f.label :email %></p>
5: <p><%= f.text_field :email %></p>
6:
This occurred while I tried to look up “/users/sign_in” with using the Devise gem. If this is unfixable how the heck would I downgrade my rails to 3.0? I tried changing the rails version in the gem file to 3.0.4 but it just threw me an error that my “activesupport” could not find a proper match.
You cannot just change the rails version and think its done. In fact, the Devise has released 2.0.0. Try that if you feel thats some bug. I am myself using Rails 3.1 and i am not facing any issues as such.