Questions tagged as 'devise'

2
answers

Extra fields do not save with Devise

I'm new to rails and I'm trying to implement Devise with some extra fields. It is saving the email and password correctly, but my first_name and last_name fields are not being saved. It is nil This is my view of the regis...
asked by 04.06.2014 / 02:17
2
answers

How to add more fields to the user table with gem Devise

I would like to know if there is any possibility of adding more fields to the user table generated by Devise because I need to relate it to others, and add more information. Is there any problem in doing so?     
asked by 02.04.2015 / 21:06
2
answers

Change Login [Gem Devise Ruby On Rails]

Gem devise creates a login system with email and password. How do I change the email login form to a code, that is, instead of the user logging in via email, he or she enters a number or name?     
asked by 18.08.2017 / 02:21
1
answer

How to override devise's "create" method?

Hello, I need to override the devise "create" method to make a certain logic before saving the user. But I do not know the way of stones to make such a change. I already researched google but the examples were not clear to me. I generated...
asked by 26.05.2017 / 16:14
1
answer

Devise multiple login pages!

I'm using Devise to authenticate myself. But I have 3 profile types, and I created it through the command rails g devise MODEL my users (Admim, dev and manager), but Devise created a login page for each type of profile, I would like to un...
asked by 01.06.2017 / 13:18
1
answer

NoMethodError in Home # index

Next, I received a challenge to create a login page, using devise and with the logged in user, so that he could create a to-do list. The login I could do and it works well, already creating the part of the posts is being the biggest problem....
asked by 01.08.2014 / 05:21
3
answers

Views specific to Devise

In my project I'm using Rails 5.1.1 and Devise to login. My question is how can I make a View, so that Devise uses it as a layout, other than application.html.erb ?     
asked by 26.06.2017 / 21:25
1
answer

Devise with parent user and child user

I have this in my Class User in devise class User belongs_to :parent, :class_name => 'User' has_many :children, :class_name => 'User' ... end What I would like to know is what would be migration of...
asked by 06.05.2014 / 17:12
1
answer

New fields should be nil, what to do?

I am using Devise, I do not want to use email for authentication, I want to use an enrollment, so I have read the Devise documentation and made the following adjustments, but the error still persists, it does not recognize the enrollment paramete...
asked by 06.09.2016 / 22:56
2
answers

How to edit Devise Views?

My question is that I have a system, in this system there is the access control of users with their appropriate permissions through their profile. I use it to access the system. What I need is to be able to edit devise views so that it acts with...
asked by 09.06.2016 / 19:18