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
1 answer

Rails 3 - Devise with acts_as_audited possible?

I'd like to use Devise with acts_as_audited. I have googled it, but the results weren't very clear. What are its pros and cons?
Rashmi
  • 629
  • 1
  • 11
  • 35
4
votes
1 answer

rails Devise http authenticating mobile

I'm trying to authenticate an android client app to my server ruby on rails app which uses Devise gem. But I've tried http authentication, and post requests to authenticate, and the server just responds 200 for any given username/password. I've…
JRafaelM
  • 861
  • 2
  • 10
  • 23
4
votes
2 answers

Starting place for Rails3 App that will be backend of an iphone app

I would like to start working on an idea I have for an iphone app, but I am having some issues on where to begin. I would like the app to be mostly used on the iphone but have some functionality on the web app such as logging in and viewing things…
Danny
  • 4,724
  • 6
  • 42
  • 55
4
votes
2 answers

Devise Handle Duplicate Sign In Requests

I am fixing an application that needs to support duplicate sign in requests being sent to the server (for devise). The requests are sent via JSON. Currently, if I call the following more than once: curl -v -b cookie.file -c cookie.file -H…
Kevin Sylvestre
  • 37,288
  • 33
  • 152
  • 232
4
votes
1 answer

No feedback to user on login failure with Rails 3 + Devise + Jquery Mobile

As it says in the subject, I'm just finishing up integrating Devise authentication into a Rails 3.1 app with Jquery Mobile. Most everything here is straight out of the box, no custom code, so there's not a lot I can paste in here to add to the…
IanWhalen
  • 801
  • 11
  • 29
4
votes
2 answers

Rails & Devise: How to authenticate specific user?

I'm using Devise for the first time with rails, and I'm having trouble with one thing: I used the provided authenticate_user! method in my user's controller to restrict access to pages like so: before_filter :authenticate_user!, :only => [:edit,…
ankit
  • 3,328
  • 3
  • 26
  • 39
4
votes
1 answer

How do I resend invitation to a user using devise invitable?

I have devise invitable gem Hooked up in my app as well as devise. Everything working fine. When I create new user, they are saved in database and mailer sends email an email address. User clicks on email, sets password and then is logged in. But…
Wes Creations
  • 337
  • 2
  • 10
4
votes
2 answers

Does anyone know the options for Devises `authenticate_user!`?

Like the title says, I'm looking for the options for devises automatic class authenticate_user!, specifically, I want it to redirect_to to '/' and not '/users/sign_in'
Vasseurth
  • 6,354
  • 12
  • 53
  • 81
4
votes
1 answer

How to Customize Registration using Devise on Rails?

I'm currently working on a Rails project and have decided to use Devise for user registration. The site is using MongoDB (mongoid gem), and I am planning to create a simple sign-up/sign-in system. So, there is a link in the home page that allows…
gerky
  • 6,267
  • 11
  • 55
  • 82
4
votes
6 answers

How-to: Devise after_sign_up_redirect?

I tried to follow the instructions here (GitHub Devise Wiki) but it's not working for me. I'm trying to get Devise to redirect to /welcome after user signs up. I created a Registrations controller but it's never going into the view. What am I…
Misha M
  • 10,979
  • 17
  • 53
  • 65
4
votes
3 answers

unknown attribute with devise

For my data model, I have two different types: family members and friends. My plan is to have each have a foreign key to a User table, which is created by Devise. So, when a user signs up, I want them to either go to /friends/sign_up or…
me2
  • 41
  • 1
  • 3
4
votes
0 answers

Cucumber BDD with capybara and devise integration

As a followup to my previous question on SO, I have followed the tutorial at https://github.com/RailsApps/rails3-devise-rspec-cucumber/wiki/Tutorial religiously to try pinpoint the origin of my test failures. My basic scenario fails: Feature: Sign…
bcouste
  • 121
  • 1
  • 6
4
votes
3 answers

Rails 3 + Devise error in migration: undefined method timeoutable

I am using rails 3 and Devise 1.3.4 for authentication in my app. After generating the user model, I try to add more devise modules to my devise_create_users.rb migration file, but I get the error: undefined method `timeoutable' for…
fertech
  • 41
  • 2
4
votes
1 answer

How to access a variable in initializer file in Rails

I have Devise and Devise_RPX_Connectable (https://github.com/chrisdebruin/devise_rpx_connectable) working (users can login with their facebook account). I'm using rails -v 2.3.5 devise --version 1.0.8 devise_rpx_connectable --version 0.1.3 My…
Ehsan
  • 43
  • 5
4
votes
2 answers

Can I pass a facebook id + token to a Rails Devise service to authenticate a user?

I have a Rails web service running with Devise + OmniAuth. I have users authenticating against Facebook Connect on a mobile device. I then want the mobile device to establish a session with our web services. What do I need to pass to device from the…
randombits
  • 47,058
  • 76
  • 251
  • 433
1 2 3
99
100