All Questions

212
votes
7answers
152514 views

Override devise registrations controller

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 ...
76
votes
7answers
33874 views

Share session (cookies) between subdomains in Rails?

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...
368
votes
29answers
112869 views

No route matches "/users/sign_out" devise rails 3

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 ...
115
votes
18answers
68278 views

rails - Devise - Handling - devise_error_messages

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...
48
votes
5answers
23443 views

Devise redirect after login fail

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...
116
votes
5answers
50277 views

Devise form within a different controller

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...
34
votes
3answers
14144 views

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...
66
votes
12answers
40779 views

Devise update user without password

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...
72
votes
4answers
43936 views

devise and multiple "user" models

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...
80
votes
11answers
80674 views

rails - "WARNING: Can't verify CSRF token authenticity" for json devise requests

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...

Previous Next