Data dodania Pytanie
2018-02-10 13:02 RSpec with devise - only the first test is logged in »
I'm trying to write a rspec feature test for a page where the user must be logged in with devise. RSpec.feature "User sees items" do before(:contex...
(1) odpowiedzi
2018-02-04 23:02 RSpec console log returns 302, but test log shows 401 »
I have a simple test written to check that users can't post into a controller with before_action :authenticate_user!. The test reads: context 'when t...
(1) odpowiedzi
2018-02-02 19:02 Change value in DB of associated model through Devise »
I am using Devise for users, and I have another model called “Host Requests” that allows users to submit an application for different access level...
(1) odpowiedzi
2018-01-28 22:01 Rails devise, find current_user by session_store key »
We have a production system (main app) running on Rails with devise gem configured (using Redis session store)(session is enabled for all subdomain) ...
(1) odpowiedzi
2018-01-22 05:01 How do I properly migrate from has_secure_password to encrypted_password (as both use password_digest) without losing old passwords? »
Migrating from has_secure_password to devise causes the following error in the console when interacting with user objects: .rvm/gems/ruby-2.4.1/gems/...
(2) odpowiedzi
2018-01-21 23:01 Devise Omniauth Facebook works on localhost, but not in Production on Heroku »
I have a Rails 5.1 app using Heroku. I am attempting to use Devise with Omniauth Facebook. The problem is the fact I have it working perfectly on lo...
(1) odpowiedzi
2018-01-20 14:01 rails devise reset password token is replaced with user's email only in production »
I use rails 3 and devise 3.0.3. My devise views and controllers are mostly default. Here is PasswordsController: class PasswordsController < Devis...
(1) odpowiedzi
2018-01-15 17:01 Devise + Firebase Facebook login »
Environment Ruby 2.3.1p112 Rails 4.2.6 Devise 4.0.3 Current behavior Hi, By default my users log with their email & password and I use fireba...
(0) odpowiedzi
2018-01-07 21:01 User signed in, but set to nil using Rails and Devise »
devise (4.4.0) Rails 5.1.4 I'm seeing this question asked a lot, but not finding the answer that works for me. I am showing that I am signing up and l...
(1) odpowiedzi
2018-01-03 19:01 Share Session between subdomains, devise authentication Completed 401 Unauthorized »
I have 2 ruby rails apps, each has a devise gem for authentication, my goal is to implement simple SSO (single sign-out), using shared sessions. one ...
(2) odpowiedzi
2018-01-03 11:01 Rails, Devise Pending Migrations Error »
I tried installing devise for rails and it works fine on heroku but when I try to run my code on my local host for my dev environment I get this error...
(2) odpowiedzi
2018-01-01 17:01 Ruby on rails 4: Render and/or redirect called multiple times in action. using Devise »
In my controller registrations_controller.rb in the update method, when I edit and make this changes it does not redirect me to the path I want but it...
(1) odpowiedzi
2017-12-31 21:12 How to add or update an associated attribute while creating a new user at sign up with Devise? »
I'm having three models: Users can have several Interests and several Places. Users can share same Interests, but the Interests table should not con...
(2) odpowiedzi
2017-12-31 13:12 How to create multiple login pages with Devise »
I'm using Devise to authenticate. However, I have 3 profile types, and I created the rails g devise MODEL command for my users (Admin, dev, and manage...
(1) odpowiedzi
2017-12-25 09:12 Holding sending reset password emails until some indecator devise rails »
I have a PasswordController inherit from Devise::PasswordsController, I made a create function that helps me to send user reset password notification ...
(1) odpowiedzi
2017-12-21 23:12 Rails Devise authentication with email and another field »
Using rails with devise. On user table I have email and a field record_status. Record status will contain 'active' or 'deleted' What do I need t...
(0) odpowiedzi
2017-12-14 19:12 RSpec + Capybara + Devise: current_user? »
rails (5.1.4) rspec-rails (3.7.2) capybara (2.16.1) devise (4.3.0) I'm trying to create a RSpec Rails 3.7 System spec as in https://relishapp.com/r...
(1) odpowiedzi
2017-12-02 19:12 Devise gem registration model issue »
I have an age check for my users in which if they want to sign up for my app, they have to be a certain age. I am using the devise gem, but created a...
(1) odpowiedzi
2017-12-01 06:12 Rails ActiveSupport::Concern and method evaluation »
I have this application which uses Devise with current_user helper. When I create a module, current_user becomes nil after I mention an attribution to...
(1) odpowiedzi
2017-11-29 16:11 user is not sign in as devise user when authenticated from omniauth facebook? »
I have integrated the omniauth-facebook in my application to authenticate the user. It is working fine but there is one problem that user is not sign ...
(0) odpowiedzi
2017-11-28 15:11 Add filter after Devise authentication »
I need to add around_action :set_time_zone (or before_filter :set_time_zone) to the application controller. The problem is that the current_user is al...
(1) odpowiedzi
2017-11-27 12:11 Devise omniauth is redirecting to failure method in callback controller even after successful authentication.? »
I am working on devise omniauth to authenticate user using facebook. I have implemented it using the documentation https://github.com/plataformatec/de...
(1) odpowiedzi
2017-11-22 11:11 Practical way to test controller authentication with rspec »
I'm wondering if there are better ways to write controller request specs than how I currently do it. I'm using the devise gem for authentication. This...
(2) odpowiedzi
2017-11-14 14:11 Customizing the views in authy-devise »
I am trying to implement two factor authentication via authy 2FA of twilio using devise-authy gem. I want to customize the views with three pages for...
(1) odpowiedzi
2017-11-12 01:11 Stub authentication in request specs »
I'm looking for the way to do this but in request specs. I need to log in and log out a double or instance_double to Devise instead of an actual Activ...
(1) odpowiedzi
2017-11-09 16:11 Connection reset by peer - SSL_connect -> Only when logged in (devise, cancan) »
I am a total newbie regarding devise and cancan and I am very lost and need at least a tip where to start. I have undertaken a ruby on rails app. I c...
(0) odpowiedzi
2017-11-06 16:11 Rails CanCanCan/RoleModel/Canard: limit to user doesn't work »
Setup: Rails 5.1, Ruby 2.4.0 User.rb created from Devise Extended with CanCanCan and Canard (which includes RoleModel) Collection has_many Items (D...
(1) odpowiedzi
2017-11-04 15:11 Duplicate Devise flash messages »
I've implemented Devise in Rails and it works great except that flash messages related to Devise display twice. duplicate flash messages Here is my ...
(1) odpowiedzi
2017-10-30 08:10 Why am I getting the CSRF token error when I skipped the action in a Rails application? »
I have a Rails application where I'm using Vue (through webpacker) in some parts of the frontend. From Vue I'm making a call to my server which needs...
(1) odpowiedzi
2017-10-28 10:10 "554 Please activate your Mailgun account. Check your inbox or log in to your control panel to resend the activation email." error Ruby on Rails »
I am building a web app using Ruby on Rails. I am using Mailgun as my mailer for this app. when i sign up using Facebook it works fine but when i try ...
(1) odpowiedzi
2017-10-26 21:10 Additional User Attribute Validation Failure with Omniauth-Facebook »
Hello everyone and thank you in advanced for your expertise and help. I'm not very skilled in Ruby on Rails (started merely 3 months ago) and am buil...
(1) odpowiedzi
2017-10-23 22:10 Customize Devise pathnames »
I am trying to customize the urls created by the devise gem: devise_for :users, path: '', path_names: { sign_in: 'login', sign_out: 'logout',...
(1) odpowiedzi
2017-10-19 22:10 Accessing current_user devise method from rails controller »
I'm using devise in a rails app I'm building. I'd like to get the ID of the user that is currently signed in, with current_user.id, in my controller, ...
(1) odpowiedzi
2017-10-17 03:10 rails devise current_user, catching ldap errors »
rails (5.0.0.1) ruby (2.3.1) We are hitting some LDAP errors (very occasionally) where are infrastructure servers (which we do not maintain) are clo...
(0) odpowiedzi
2017-10-16 19:10 Check is it valid reset_password_token, Rails 5 devise »
I am using Rails 5 with Devise. I want when some1 make request for new password, then go to the URL to change his password, if it is not valid reset_p...
(0) odpowiedzi