Questions tagged [devise]

Devise is an authentication gem for Ruby-on-Rails. It supersedes previous solutions such as Restful Authentication or Authlogic.

Devise is an authentication gem for Ruby-on-Rails. It supersedes previous solutions such as Restful Authentication or Authlogic.

Devise is built as a Rails engine and is a full-featured drop-in solution that comes with a complete set of controllers and views to support features such as user registration, user password recovery, user authentication, user email verification and many more.

Devise works with Rails 3 and Rails 4, and also supports a branch compatible with Rails 2.3.

Devise was originally developed by José Valim and Carlos Antônio da Silva and released at Rails Summit Latin America 2009.

Resources

15025 questions
4
votes
2 answers

Rails Devise not Deleting Account

I am starting a new web app and I am using Devise for the authentication. I have got Devise working with register, login, edit and viewing the user profile. The only problem I am having is clicking the 'Delete Account' just redirects to /users and…
user358380
4
votes
1 answer

Devise custom authentication without a password

In my app I need to have a database authentication but without a password. Just by entering your phone number. When the user sings up he enter phone number, adress and name and no password. Is it real? Just can't figure out how to make it. Thanks…
nxxn
  • 329
  • 3
  • 14
4
votes
1 answer

How to create a Signup Form with Ajax, Rails 3 and Devise?

I started using Devise for a project and I'm a bit disappointed because everything is so hardwired somewhere deep in the Devise Gem. I find it very difficult to create a custom Sign Up or Sign In process. What I'm trying to do is show a simple…
Ole Spaarmann
  • 15,845
  • 27
  • 98
  • 160
4
votes
1 answer

Mongoid::Errors::MixedRelations: Mongoid + Devise

I have a Model User from Devise with that relations: user.rb # Relationships references_many :houses, :dependent => :delete Now I have a Model House created with scaffold: house.rb # Relationships referenced_in :user, :inverse_of => :houses…
hyperrjas
  • 10,666
  • 25
  • 99
  • 198
4
votes
1 answer

rails s gets error for devise configuration to send mail

config/initializers/devise.rb=> # Use this hook to configure devise mailer, warden hooks and so forth. The first # four configuration values can also be set straight in your models. Devise.setup do |config| # ==> Mailer Configuration # Configure…
cola
  • 12,198
  • 36
  • 105
  • 165
4
votes
1 answer

current_user and active_admin

I have tried every way possible and can't seem to limit the scope_to method in active_admin using cancan. I can get the menu to play nice as well as most other methods but not scope_to For example this works fine: menu :if => proc{ can?(:manage,…
holden
  • 13,471
  • 22
  • 98
  • 160
4
votes
3 answers

Devise throw ArgumentError in rails 3.1

In Rails 3.1 app and updated Devise 1.4.7, when I visit http://localhost:3000/users/sign_up (as indicated in rake routes), I get "ArgumentError in Devise/registrations#new" extracted source is line 3: <%= form_for(resource_name, resource, :url =>…
katie
  • 2,921
  • 8
  • 34
  • 51
4
votes
2 answers

Rails devise reset password not working

I am using devise in a rails 3 application. I have devise fully working however the 'forgot password' function has decided to stop working. When I enter an email address and click the 'send me reset instructions' button I am redirected to the login…
user532339
4
votes
1 answer

400+ms overhead anytime rails accesses current_user

my apps views are taking anywhere from 800-2000ms to load according to the logs. I noticed for a page w/o accessing current_user the time is under 10ms... Anytime current_user is accessed it takes 400ms just to get current_user. Any ideas why it is…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
4
votes
1 answer

rails authentication for an API

I'm currently working on an application that in addition to the usual visual web application goop also will expose a few RESTful API services for use by outside applications. I am using Devise to manage user authentication but I'm struggling with…
jaydel
  • 14,389
  • 14
  • 62
  • 98
4
votes
1 answer

How to clear facebook session and cookie when using devise + omniauth + rails 3?

I implemented account creation and login using facebook connect using devise + omniauth on rails 3. My problem, however, is clearing facebook session and cookies when user logs out. Currently when a user signs out, it seems to clear current session.…
yangtheman
  • 509
  • 4
  • 21
4
votes
1 answer

Rails Devise Omniauth omniauth_openid_connect issue, how to work with endpoints with different hosts

I need some help in configuring omniauth_openid_connect gem (https://github.com/omniauth/omniauth_openid_connect). I have two endpoints one for Authorization and another for token: Authorization endpoint: https://oauth.provider.com/authorize Token…
svelandiag
  • 4,231
  • 1
  • 36
  • 72
4
votes
2 answers

Devise i18n resource

I'm trying to use locale to translate devise default language (english) to portuguese. I've found a pretty good resource for that, it's working for the most part, but whenever I have a pointer to the resource variable inside the locale it gives me…
4
votes
2 answers

With capybara, how to use page.should render_template

I have the following test: it "I can Sign Up with Facebook" do visit new_user_registration_path click_link_or_button 'Sign up with Facebook' # Validate page.should…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
4
votes
1 answer

How to test Devise in a Controller RSpec, error: undefined method `assign' for #

I'm getting the following error: undefined method `assign' for # When attempting to test per the docs. Here's is what I have: user_controller_spec.rb require 'spec_helper' describe…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
1 2 3
99
100