Most voted "devise" questions
Devise is a Ruby on Rails Gem that serves to easily implement user authentication in the application.
Learn more…33 questions
Sort by count of
-
2
votes2
answers841
viewsExtra Fields Don’t Save With Devise
I’m new to Rails and I’m trying to implement Devise with a few extra fields. It is saving the email and password correctly, but my fields first_name and last_nameare not being saved. Are nil This is…
-
2
votes2
answers490
viewsAdding more fields to the user table with Gem Devise
I wonder if there is possibility to add more fields to the user table generated by Devise because I need to relate it to others, and add more information. Is there a problem in doing so?
-
2
votes1
answer106
viewsHow to override "create" method from Vise?
Hello, I need to overwrite the "create" method from Windows to make a certain logic before saving the user. However I do not know the path of the stones to make such a change. I already googled but…
-
2
votes1
answer334
viewsNomethoderror in Home#index
Next, I received a challenge to create a page with login, using Sign in and with the user logged in, that he could create a task list, an to-do list. The login I managed to do and works well,…
-
2
votes1
answer135
viewsDevise multiple login pages!
I am using Devise to perform my authentication. But I have 3 profile types, and created through the command rails g devise MODEL my users (Admim, dev and manager), but Devise created a login page…
-
2
votes2
answers287
viewsChange Login [Gem Devise Ruby On Rails]
Gem Design creates a login system with email and password. How do I change the form of email login to a code, ie instead of the user login by email it enter with a number or name?
-
1
votes1
answer96
viewsDevise with parent user and child user
I’ve got it in my Class User in the Vise class User belongs_to :parent, :class_name => 'User' has_many :children, :class_name => 'User' ... end What I’d like to know is what the migration of…
-
1
votes1
answer320
viewsDevise: Edit account without need to confirm password
Hello, this is my problem: I have an application (Rails 4) with the gem 'devise' and gem 'omniauth-facebook'. Who logs in with facebook at the time of editing the account appears error "Current…
-
1
votes1
answer233
viewsHow to implement attribute login from another table with Devise in Rails 4?
I currently have a Model User who has a relationship has_one with Customer. In the tables customers have the field CPF that the user informs when to register. I need to implement a login in which…
-
1
votes1
answer68
viewsError editing user register with nested_form
I’m having a problem with an app I did here on the job. I use nested_form together with Devise for a student registration, that is, when I register a student, I already add a user to it in the…
-
1
votes3
answers146
viewsViews specifies for Devise
In my project I am using the Rails 5.1.1 and the Devise for login. My question is how I can make a View ,so that the Devise uses as layout, without being the application.html.erb?…
-
1
votes1
answer163
viewsAdmin View Ruby on Rails
Next I created a website using Ruby on Rails and the Gems Devise and Pundit. Users have a role who may be an Analyst, Developer or Administrator. I’m wearing a View to list all registered users for…
-
1
votes0
answers69
views" xed" Followed by "t" on UTF-8
I have a Rails application and when I run or compile the Assets it gives the following error: "\ xED" followed by "t" on UTF-8 In my application.Rb I already have that key: config.encoding = "utf-8"…
-
1
votes2
answers911
viewsHow to edit Devise Views?
My point is that I have a system, in this system there is access control of users with their proper permissions upon their profile. I use Devise to access the system. What I need is to be able to…
-
1
votes0
answers296
viewsAuthentication using Token With Devise Rails
Staff need help implementing authentication by token, I already created the models, the application is working properly, now I need to improve security. The customer will send me registration and a…
-
1
votes1
answer55
viewsNew fields stay nil, what to do?
I’m deploying token and authentication, I’m using JWT and Devise, I’m having a problem with Devise, I don’t want to use email for authentication, I want to use a license plate, so I read the Devise…
-
0
votes1
answer83
viewsProblem with Gem "confirmable" module "Developer" in Rubyonrails
I was implementing the Gem Devise in the Rubyonrails and everything was working perfectly. Then I went to add the "confirmable" module. I took the following steps: I added :confirmable in…
-
0
votes1
answer262
viewsHow to authenticate with Devise via AJAX?
I need to do login, for example, on the home of my website using GEM Devise with AJAX. Does anyone know any way?
-
0
votes1
answer129
viewsProblem creating Ruby on Rails
I am trying to put an entity I already had in my project as Sign in to login and etc, I used the following commands add in Gemfile the line gem 'devise' in the terminal executed: rails generate…
-
0
votes1
answer45
viewscreate a mult model form using nested-form and Devise (Sign up)
I need to create a registration form using the Sign up form from Devise and associating to it a Custumer model that contains information such as name, date of birth etc. how do I run nested…
deviseasked 8 years, 7 months ago Lucas Nunes De Sousa Hunter 21 -
0
votes1
answer624
viewsAim to catch logged in user
Guys I have a simple application using ruby on Rails a Gem Rails admin and Devise to authenticate i have a model called task where every task belongs to a user , so I would like to pick the user who…
-
0
votes1
answer88
viewsLogin Help [Ruby On Rails - Gem Devise]
I’m using Gem Devise to create a login system. However, my project requires 2 login verification fields instead of just 1. For example, the company has 5 departments, the user has the 0010 code and…
-
0
votes1
answer24
viewsProblems using nested_attributes and Devise
I’m creating a user settings form that uses Devise, I’m using nested Attributes, but for some reason the settings record is not updated, but deleted, someone has any idea what might be going on?…
-
0
votes1
answer116
viewsHow to display a user’s Posts?
I’m trying to display user posts on perfil = link_to 'perfil', user_path(user) User data appears, but when I try to show user posts comes error: Nomethoderror in Userscontroller#show Undefined…
-
0
votes2
answers175
viewsDoubt Gem Devise
Hello, I’m using Gem Aim for a project of my own and a question has arisen, how do I leave only one route free, for example I want all other routes need login and password less the main page. I did…
-
0
votes1
answer54
viewsDirect button depending on whether the user is logged in or not
I have a button that leads to another screen, but if the user is not logged in to the system he should redirect to the login screen and not to the one that is already going. You can do this directly…
-
0
votes1
answer53
viewsRails - Gem Cancancan and Devise
I use the Gems 'Devise' and 'cancancan' and also the 'rails_admin' in my project. All of them for the administrative part of the site. This part is working perfectly.However in my main page of the…
-
0
votes1
answer677
viewsDevise - Email confirmation and Forget password? [ email does not send ]
Problem sending Confirmation Email and Password Change Problem After requesting to send the forget password? he keeps carrying it until he gives time out. The creation of the Password exchange token…
-
0
votes0
answers114
viewsGoogle Oauth + Globe.com stopped working
No customer with email @globo.com is more able to access my services via Oauth. In the old days, they all signed in to "Login with Google", typed in the credentials of the globe.com, and logged in…
-
0
votes1
answer47
viewsDoubt about creating "repeated" methods in Rails
Person, I started to use Rails a little while ago and I have a question of how to improve the code below: I have a model called User that has an attribute called Role for permissions. However, to be…
-
0
votes1
answer36
viewsDevise - "Brush" system tasks per user
I’m making a simple little application where the user can delete, edit, view and create tasks, tasks have description, title and date to be executed. I have implemented Aim to register users and…
-
0
votes0
answers32
viewsSession problem between Sidekiq and Devise
For some reason after processing Job on Sidekiq a Session falls. Follow the flow and more detail about the problem. Follow the code of Job: class GenerateProfileJob < ApplicationJob queue_as…
-
-1
votes1
answer20
viewsLoop Redirect Error in Rails application
I am working on an application in Rails and doing tests via Postman, the application usually works normally after having logged in some user, I can test the endpoints correctly. But when I stay with…