I am trying to have the Devise log in form be on my home page.
When I just copy the form over, of course I get errors because the 'resource' variables and etc are not set in the action.
I found this solution on the internet: http://pupeno.com/blog/show-a-devise-log-in-form-in-another-page/
However, his solution is to set the needed variables in a module called ContentHelper.
Where do I put this code? I tried putting it in the initializers, but I still get the error about 'resource' variable not existing
See if this entry in the devise wiki helps you!
https://github.com/plataformatec/devise/wiki/How-To:-Display-a-custom-sign_in-form-anywhere-in-your-app
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With