devise Questions

5

In my Rails 7 application, I'm trying to show a confirmation message when the user presses a "Delete" button. However, when the button is pressed, it's deleting the record straight away w...
Siloum asked 16/5, 2022 at 1:48

7

Solved

I am using Rails 3. There is a possible duplicate here. But it did not solve my problem, neither did any other solution. My migration is as follows class AddConfirmableToDevise < ActiveRecord:...
Phyla asked 2/2, 2012 at 7:16

30

Solved

Here is my actual error: No route matches [GET] "/members/sign_out" Since most people will use "users" I thought it would be more helpful to have that in the title. At any rate, I am essential unab...
Mirilla asked 4/7, 2011 at 6:7

3

I have a new app that I am trying to setup with devise and devise-jwt. For some reason my authenticate_user! call is causing an error because sessions have been disabled: {"status":500,&...
Ploss asked 25/8, 2022 at 12:10

5

Solved

I have the gem devise-jwt installed. I can perform a login request, and receive an Authorization token in return, but when I try to access a secured endpoint, I receive the message: No verification...
Etti asked 20/11, 2020 at 4:51

10

Solved

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 co...
Hornstone asked 1/5, 2012 at 19:2

5

Solved

In my Rails project I have different types of users one of which has the user_status :admin, which has full rights to edit content unlike the rest of the users. For obvious reasons I want to add ad...
Cryptomeria asked 9/3, 2015 at 10:58

5

Solved

I am building a Rails-API using Omniauth-facebook and Devise-token-auth with Angular and ng-token-auth for the frontend. However when logging in with facebook I am presented with the error: undefi...
Bufflehead asked 5/10, 2016 at 17:10

2

Solved

I recently upgraded my application to rails 7 and now a bunch of my tests are failing with the below error. ActionDispatch::Request::Session::DisabledSessionError: Your application has sessions dis...
Sosthina asked 10/10, 2022 at 19:21

8

My devise users are "database_authenticatable" and "token_authenticatable". I've tried deleting the "authentication_token" field in the database for that user from the console, but they still seem ...
Door asked 9/3, 2015 at 4:0

6

Solved

I am using devise for my users. I recently installed the rails Active Admin gem, everything is working beautifully. However I can't figure out how to add a new admin users. I can see that active ...
Hereunto asked 28/9, 2011 at 22:54

1

Solved

So, I found gems like pretender, user_impersonate2 and switch_user. They all seem to accomplish the similar goal - switching current_user for systems like Devise, for "monolith" Rails apps. I have...
Solvable asked 6/8, 2019 at 12:20

5

I followed the tutorial in the readme of the omniauth-google-oauth2 gem and when I click the link on my root (@ pages#home), <%= link_to "Sign up with Google", user_google_oauth2_omniauth_author...
Panarabism asked 24/3, 2017 at 2:46

15

Solved

In my development and test environments, I want to seed the database with a bunch of users. I'm using Ruby on Rails v3.2.8 and the latest Devise. So I added this line in my db/seeds.rb file: User....

6

Solved

I'm trying to migrate a ton of users from an old database. To do this, I'm using activerecord-import and trying to save all my user data directly to DB (bypassing the User model). My issue: I need...
Hilel asked 4/11, 2011 at 21:10

3

Solved

I'm just starting with Devise and Rails3. I have the Authenetication down and working and understand the basics. As of now in my Home Controller that represents my Home/Front Page i have two links...

10

Solved

I am new to Ruby on Rails and am trying to make my first application. I am having issues though anytime I run any rails generate command. I get the following error MyUsers-MacBook-Pro:MyApp MyUser...
Corallite asked 13/6, 2014 at 1:8

7

Solved

How I can disable all Devise gem flash messages ("successfully signed in","you logged out")? Thanks.
Social asked 23/4, 2011 at 7:2

2

you're my last chance I try to move from devise_token_auth to devise-jwt When I try to sign_in a user, devise respond with : "You need to sign in or sign up before continuing." Config : ...
Jello asked 1/10, 2020 at 13:48

3

Solved

I am trying to add the header to my rails application based on authenticating the user. So here I am checking that if the user has logged in or signed in and then adding login/logout link based on ...
Snob asked 13/1, 2017 at 7:2

4

Solved

Following the Railscast on Devise and OmniAuth I have implemented an OmniauthCallbacksController < Devise::OmniauthCallbacksController which contains a single method to handle an OmniAuth callba...
Whitehall asked 8/5, 2013 at 20:15

2

Solved

I couldn't really find this in the documentation. Only thing I've found is a after_sign_in_path_for method. What I want though is something like sign_in_path_for(:account) so that I wouldn't have t...
Propjet asked 10/2, 2011 at 6:57

2

trying to add new users , using the devise gem ran rake db:migrate and ran the rails server again but when i type in 3000/posts/sign_up it gives me the default sign up screen but when try to cre...
Tirpitz asked 18/3, 2014 at 20:48

5

Solved

My User (Devise) model also has name, city, nation, phone members. In the create registration page - I validates_presence_of city, nation, phone, name, email, :on => :create In the edit registrat...
Sacerdotalism asked 5/2, 2012 at 21:36

2

Solved

I've been developing a website on localhost and it wors fine. This morning, I've tried to push it to heroku using the command "git push heroku master" and then "heroku run rake db:migrate". When I ...
Conformity asked 20/8, 2013 at 18:17

© 2022 - 2025 — McMap. All rights reserved.