Questions tagged as 'devise'

1
answer

Rails - Gem CanCanCan and Devise

I use gems 'devise' and 'cancancan' and also 'rails_admin' in my project. All of them for the administrative part of the site. It is working perfectly this part. But in my main page of the site (root) it should not need authentication to acce...
asked by 27.05.2018 / 18:44
1
answer

Devise - Confirmation email and Forget password? [email does not send]

Problem does not send Confirmation Email and Password Change Problem After requesting the submission of forget password? it will load until giving time out . Thecreationofthetokenforpasswordexchangeisgeneratedcorrectly,acce...
asked by 25.03.2015 / 18:40
1
answer

How to display a user's posts?

I'm trying to display user posts in perfil = link_to 'perfil', user_path(user) The user data appears, but when I try to show user posts the error occurs:    NoMethodError in UsersController # show undefined method 'posts'   for # &l...
asked by 20.01.2015 / 23:03
1
answer

How to do authentication with Devise via AJAX?

I need to , for example, on my site's home page using GEM Devise with AJAX. Does anyone know any way?     
asked by 04.05.2014 / 02:13
0
answers

Rails / Nginx / Devise redirecting to http on login

Hello, I am not an underdog, I am a mere programmer enslaved by the stupidity of anyone who has money. That said, my doubt. Rails / nginx / certbot / DigitalOcean / devise are the cause of the problem, I think it's the main nginx, the co...
asked by 04.12.2018 / 16:33
0
answers

Use STI with Devise

I'm using (or trying to use) STI with Devise . I have the User model (I added the type attribute), which I want to be the devise model and two models that inherit from user. I chose this approach and not just roles because the model...
asked by 04.09.2018 / 03:12
0
answers

undefined method 'user_id' for #User: 0x00000006434580 rails admin ruby 4

My application is experiencing the following error: undefined method 'user_id' for # If you want to use a RailsAdmin virtual field (= a field without corresponding instance method), you should declare 'formatted_value' in the field definitio...
asked by 21.06.2018 / 15:20
1
answer

Direct button depending on whether the user is logged in or not

I have a button that takes to another screen, but if the user is not logged in the system it should redirect to the login screen and not to the one that is already going. Can you do it right on link_to? li= link_to 'Anuncie', new_subscription_...
asked by 09.05.2018 / 21:47
1
answer

Problems 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 registry is not updated, but rather deleted, does anyone have any idea what's going on? Form: link Console log: link (Als...
asked by 12.10.2017 / 23:54
1
answer

Devise - "Scoping" system tasks per user

I am making a simple application where the user can delete, edit, view and create tasks, the tasks have description, title and date that must be executed. I deployed devise to register users and login users, but I have difficulty "scoping" th...
asked by 08.04.2017 / 23:56