Questions tagged as 'devise'

0
answers

"\ 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 this key: config.encoding = "utf-8" Does anyone know what it c...
asked by 21.11.2017 / 18:13
0
answers

Authentication using Token With Devise Rails

Personal needs help to implement token authentication , I have already created the models, the application is working correctly, now I need to improve security. The client will send me a registration and a password, it will come in JSON ,...
asked by 06.09.2016 / 14:28
1
answer

How to implement login with attribute coming from another table with Devise in Rails 4?

I currently have a User Template that has a has_one relationship with Customer . In the customer tables I have the CPF field that the user informs when to register. I need to implement a login where the user inputs the e-mail...
asked by 08.09.2016 / 23:18
1
answer

Admin View Ruby on Rails

Next I created a site using Ruby on Rails and the Devise and Pundit gems. Users have a role that can be Analyst, Developer or Administrator. I am using a View to list all users registered to the admin. This is my Controller :...
asked by 13.11.2015 / 13:28
1
answer

Error editing user registry with nested_form

I have a problem with an application I made here on the service. I use nested_form together with Devise for a student registration, that is, when registering a student, I already add a user to it in the system, which can have access to notes amo...
asked by 01.12.2014 / 12:46
1
answer

Devise: Edit account without having to confirm password

Hello, this is my problem: I have an application (rails 4) with gem 'devise' and gem 'omniauth-facebook' . Who logs in with Facebook at the time of editing the account appears the error "current password can not be blank '... In thi...
asked by 28.06.2014 / 05:37
1
answer

Doubt about creating "repeated" methods in rails

Person, I started using rails a short time ago and I have a question about how to improve the code below: I have a model called User that has an attribute called Role for permissions. However, to be more readable I ended up creating the follo...
asked by 16.04.2016 / 21:13
1
answer

Login 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 code 0010 and works in department 1, so for his login he woul...
asked by 17.08.2017 / 13:48
2
answers

Doubt Gem Devise

Hello, I'm using gem devise for a project of its own and a question has arisen, how do I leave just one free route, for example I want all other routes to need login and password minus the main page. I did some research and got to this li...
asked by 23.10.2017 / 02:48
1
answer

Problem with "confirmable" gem module "devise" in RubyOnRails

I was implementing the gem Devise in RubyOnRails and everything was working perfectly. Then I went to add the "confirmable" module. I took the following steps: I added :confirmable to Usuarios.rb : class Usuario < Activ...
asked by 28.04.2014 / 14:34