I have added a field to the sign-up form that is based on a different model, see How do I use nested attributes with the devise model for the gory details. This part is working fine. The problem now ...
I have an app setup where each user belongs to a company, and that company has a subdomain (I am using basecamp style subdomains). The problem that I am facing is that rails is creating multiple cooki...
I've installed devise on my app and applied the following in my application.html.erb file: <div id="user_nav"> <% if user_signed_in? %> Signed in as <%= current_user.email ...
in my user edit page, there is a line as follows: <%= devise_error_messages! %> The problem is this does not output errors the standard way that the rest of the app does: <% flash.each do...
All the questions I've found are related for a successful login with the helper after_sign_in_path_for(resource) I have a login form in the index of the site, and when the login fails it redirects to...
I am using a devise gem for sign_in/sign_out procedures. I generated views files from devise, using rails g devise views I saw there was a devise/sessions/new.html.erb file which contained a form fo...
Multiple user models with Ruby On Rails and devise to have separate registration routes but one common login route
First, I've searched intensely with Google and Yahoo and I've found several replies on topics like mine, but they all don't really cover what I need to know. I've got several user models in my app, f...
I want to update users attributes without password in devise. The case is like, if password and password confirmation fields are not blank then I need devise error and if they are blank then other use...
I'm using rails 3.2 and devise 2.0 and I'm quite new to Rails. Requirements I'd like to achieve the following: have 2 or more "user" models, eg. Member, Customer, Admin all models share some requi...
How can I retrieve the CSRF token to pass with a JSON request? I know that for security reasons Rails is checking the CSRF token on all the request types (including JSON/XML). I could put in my cont...