In my views/devise/sessions/new.erb.html file I have the following line
> <%= form_for(resource, :as => resource_name, :url =>
> session_path(resource_name), :html => { :class => "form-horizontal
> well"}) do |f| %>
This works fine, but if I try to put this form on my homepage, I get an error...
undefined local variable or method `resource' for #<#<Class:0x2950e78>:0x563118>
What do I need to do to get this working? Or is there documentation for Devise regarding this?