devise

Devise DoubleRenderError

Application-Stack: Rails3, CanCan, Devise, Shoulda I've got some nested Resources and want to test them with Shoulda and i get the following DoubleRenderError: Error: test: If anonymous user tries to GET index of fav_blogs should respond with 401. (BlogItemsControllerTest): AbstractController::DoubleRenderError: Render and/or redire...

What does the "stretches" of database_authenticatable of devise mean?

I see in the config/initializers/devise.rb, there is a configuration called "config.stretches". # ==> Configuration for :database_authenticatable # For bcrypt, this is the cost for hashing the password and defaults to 10. If # using other encryptors, it sets how many times you want the password re-encrypted. config.stretches = 10 I d...

Rails3 Beta4 Devise Delayed_job configuration

Hi everyone (: I want to use delayed_job to send email in backend, this is /config/initializers/setup_mail.rb ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => DOMAIN, :user_name => USERNAME, :password ...

Rails Using Devise to show Online users

Hello I would like to show my online users in a Who's online module. I'm using Devise to manage my users. I searched everywhere, but I don't have any idea to manage it. Do you have a clue? Thanks in advance ...

Devise with OpenID in Rails3 beta4 but raise [undefined method `apply_schema'] error

Hi friends, I have use devise_openid_authenticatable to support OpenID with devise in rails3 beta4. But when I run rake db:migrate, it occurs [undefined method `apply_schema'] error.like this: == DeviseCreateUsers: migrating ============================================== -- create_table(:users) rake aborted! An error has occurred, all...

Making functional tests in Rails with Devise

After 3 years of procrastination today is the day that I start testing my Rails apps. My first step is to fix the failing tests in my Rails 3 beta4 app. My last 3 failing tests have to do with the devise gem and its authenticate_user! method in a before_filter at the top of my controller. You'd earn great karma by helping me out with t...

Remove model from Devise urls

How do I remove the model name from Devise urls? Ie users/sign_in -> /sign_in users/sign_out -> /sign_out users/registration/sign_up -> /sign_up users/registration/edit -> /edit ...

How do I override a Devise 1.1.rc2 controller?

I want to add the option to register with a JSON format and some other specific stuff to my application. I've tried adding my own RegistrationsController controller and then setting my routes to look like this: devise_for :users, :path_names => { :sign_in => 'signin', :sign_out => 'signout', :sign_up => 'signup' } match 'signin', :to =>...

How to debug devise/warden?

I am trying to setup devise in my rails app. It was working nicely, but now I am not able to login as any of my users I get 'Invalid email or password.' I would like to get more insight why its not authenticating. Is there any devise configuration settings that shed some more light? i.e. what is the query being used to find the user,...

How can I simply verify that a username and password are correct with Devise and Rails 3

I am using Devise and Rails 3. I want to perform a function that will simply verify that a user's username and password combination is correct without actually logging in that user. Is there some way I can accomplish something like User.authenticate(params[:username], params[:password]) with Devise? ...

about user authentication with username and subdomain

Hi guys, I am using devise as my authentication system. And i want to authenticate user with username along with subdomain. It seems that devise needs both the username and subdomain field in the same table which is not in my case. I have subdomain field in Company table while username and password in the UserAccount table. And there is ...

Couldn't find 'devise_install' generator - Rails 2.3.8, Devise 1.0.8

I'm trying to get Devise up and running with a freshly generated Rails 2.3.8 app. This is the error I'm running into: devise > script/generate devise_install Couldn't find 'devise_install' generator I do have the Devise and Warden gems specified in my config file: config.gem 'warden', :version => '0.10.7' config.gem 'devise', :vers...

Rails | Devise | How to override redirection after requesting a password change?

Hi I am using Devise 1.0.3 and Rails 2.3.5 My user has the following devise line: devise :authenticatable, :confirmable, :recoverable, :registerable, :rememberable, :trackable, :validatable I would like to customize where the application redirects the user to, after requesting instructions for a password reset. For other regis...

Devise for Ruby on Rails, routing problems after installation

I have rails Rails 2.3.8 and Devise 1.0.8. I have followed the installation instructions, but when trying to access /users/sign_in for the first time after modified routes.rb, I get Internal Server Error undefined method `[]' for :users:Symbol When I reload, I get Routing Error No route matches "/users/sign_up" with {:method=>:get} ...

Rails - Devise and acts_as_audited

Hey, I want to use Devise and acts_as_audited together but when I try and link them using - class ApplicationController < ActionController::Base audit Candidate protected def current_user @user = User.find(user_session) end I get this error. stack level too deep Do I need to do it differently ? Thanks ...

Managing user session with devise on iPhone APP

Hi, I have a Rails application for which I use devise to authenticate my users and this works great. I now want to write an iPhone application (not just a WebUI but a proper APP) that accesses the same data and so requires the same authentication. How should I go about doing this? I want to login using devise and keep the session ope...

Create A User (Owner) and then Create A Team using Devise

Hello I have been trying for several days using nested attributes, etc. Basically, I want a User to SIGN UP. Once the User is 'Signed Up' I want them to be redirected to 'Create Your Team' page. Once they created their Team, then they are redirected to their Team Dashboard. But what if a User didn't create the Team right away? I would ...

how to change devise's flash[:notice] in rails

I'm using rails 2.3.5 and devise 1.0.6. I'm having users confirm account's with email. However, when a new user sign's up the flash notice says "The user was successfully created" which it was but it doesn't tell the user that they need to confirm their their email unless they try to log in and devise's flash notice still doesn't explain...

Rails Devise send password reset mail as delayed job

i want set the rails plugin devise'reset_password_instructions to delayed_job..but i tried many ways is fail. i found a function password_controller#creat they have self.resource = resource_class.send_reset_password_instructions(params[resource_name]) i think the sentence used for send email to reset password. i want alter it like ...

How can I use Cucumber to test Devise's Rememberable functionality?

I'd like to have a Cucumber feature testing the rememberable functionality of devise (a remember me cookie). It is easy to check the remember me check box using capybara but how should I simulate a user returning to the site after closing their window? ...