If you try to put them somewhere else you’ll run into some problem. There are some variables/methods those forms use that you’ll be lacking, specifically: resource_name, resource and for logging in also devise_mapping. I’ve recently tried to put them both in the homepage for an upcoming project of mine and this is how I’ve solved it:

This is awesome. Thank you for posting it. It saved me big time. The only issue I have is when I submit the form, it actually takes me to the actual devise page and not my controller. Looks like the redirects are off for errors. Any ideas how to solve that with your brilliant ways.

You don’t have to create this module anywhere. You have to find the Helper module for whatever controller you are working in. If you controller is called BlahController then in your project you should have a BlahHelper.