similar to: Migrating users from devise to bcrpyt-ruby

Displaying 20 results from an estimated 1000 matches similar to: "Migrating users from devise to bcrpyt-ruby"

2012 May 13
4
undefined method `key?' for nil:NilClass,bcrypt-ruby,has_secure_password
I''m going through DHH''s Agile Web Development with Rails for Rails 3.1. In chapter 14 they create a Users sign-in model/view/controller using the has_secure_password method. My user.rb file looks like this class User < ActiveRecord::Base attr_accessible :name, :password_digest, :password, :password_confirmation validates :name, presence: true, uniqueness:
2014 Apr 14
0
Foundation & Authlogic
Seems I can get either Foundation or Authlogic to work but not both - After bundle install when I do a rails g foundation:install I get the following: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.1.0/lib/acti ve_record/dynamic_matchers.rb:26:in `method_missing': undefined local variable o r method `inheritable_attributes' for ActiveRecord::Base:Class (NameError)
2012 May 24
0
Ruby on Rails Tutorial Chapter 6 RSpec tests failing
Hello all: I''m a RoR newbie who is currently following the Ruby on Rails Tutorial: Learning by Example book (http://ruby.railstutorial.org/ chapters/modeling-users#sec:adding_a_secure_password). The following Chapter 6 RSpec tests are failing: Failures: 1) User [31mFailure/Error:[0m [31mit { should be_valid }[0m [31mexpected valid? to return true, got false[0m [36m # ./spec/models/
2012 Sep 18
2
NoMethodError with rake db:migrate
Hi! First of all, this is my first application on Rails, and i''m stuck at a migration. i created a demo app (the demo_app from michael hartl''s tutorial) as usual: rails new demo_app, rails generate scaffold User name:string email:string, and when i do rake db:migrate, this stack appears: rake db:migrate --trace ** Invoke db:migrate (first_time) ** Invoke environment
2012 Jan 27
0
Warden - how to setup custom encryptor
I`m writting sinatra app and i would like to setup encryption in Warden like i did it in devise when i used Rails. module Devise module Encryptors class Md5 < Base def self.digest(password, stretches, salt, pepper) str = [password].flatten.compact.join Digest::MD5.hexdigest(Digest::MD5.hexdigest(str)) end end end end Where I can
2014 Apr 23
0
Something went wrong
http://secret-brushlands-1375.herokuapp.com/users/sign_up Not sure why all of a sudden I am getting this error message when I try to save a new user - Here is the log file: C:\rails_projects\store4>heroku logs 2014-04-23T21:35:54.918695+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act ivesupport-4.1.0/lib/active_support/callbacks.rb:113:in `call' 2014-04-23T21:35:54.918698+00:00
2011 Feb 14
0
Devise is causing the [The change you wanted was rejected.] Error...
I am using the custom made Devise controller. I moved from PHP to Rails that, old users password are stored in Devise:user table in form of "devise_encryption(oldencryption(password))" If an user login, and app finds out that this user''s password is in form of "devise_encryption(oldencryption(password))", I then change it in to a form of
2011 Feb 06
2
Controller Testing + Devise = boom (undefined @controller, request)
Here I am, trying to learn TDD and BDD. Getting start, most simple case, and the world is falling apart: My test code: it "should respond with success" do puts ''hi'' # get :new # response.should be_success end My stack trace: $ rspec spec "controller: nil" F Failures: 1) VideosController new exposes request and response before and
2011 Aug 25
1
Devise + Forem: undefined method weeks on Fixnum
I''m getting the following message when trying to start Webrick or console. ... devise-1.0.11/lib/devise.rb:89:in ''<module:Devise>'': undefined method ''weeks'' for 2:Fixnum (NoMethodError) After trying to upgrade my app to Rails 3.1 (edge) so that I may use the Forem engine. I''m under the impression this error is occurring because
2011 Nov 21
0
How to use two different sets of mailer templates for two different Devise models?
I''m using Resque to send Devise emails. To do so I set: devise.rb config.mailer = "Mailers::Devise::DeviseMailer" But I have 2 devise models -- User and Client. I want to send different devise mailer templates for each. devise.rb says "The first four configuration values can also be set straight in your models.", and config.mailer is one of those first four, but
2012 Feb 28
0
Devise with two emails
Hi, I''m trying to setup a User model with devise, and I want it to have two emails (personal and work, for example). And I want them to work as the normal email from devise, except that the login will be done with a username attribute. But the emails that devise will send, I expect to be delivered to both emails. I also want all the normal email validations on both emails (done by
2011 Jun 27
0
Devise Invitable mailer -- how to force text/plain e-mail?
I am using Rails 3.09 and the latest Devise and Devise Invitable. I am able to make Devise send confirmation messages as text/plain just by adding a view properly named to the views/devise/mailer folder. Invitable keeps its views in views/users/invitations/mailer, but changing the name of the file (and the contents) does not seem to affect this at all. Instead, the view is being loaded
2010 Aug 09
0
Devise :current_password validations and checking (how???)
Hi Guys, In my devise applications in Rails 3, I created a separate form under my SettingsController class of which it handles the ''Change Password'' of the User Model, so i can manipulate the current_user in the SettingsController. Now, I followed the set-up in the Devise/Views on how to update the form using ''Change password'' and either way update User for
2011 Nov 02
1
getting devise to return json data when signing out
Hi all, In curl (the command line program), I can successfully log a user in using devise: def create respond_to do |format| format.json { if user_signed_in? return render :json => {:success => true, :errors => ["Already logged in."]} end resource = warden.authenticate!(:scope => resource_name, :recall =>
2011 Aug 09
0
Devise, RSpec and Webrat
My app is builded with rails 2.3.12, rspec-rails 1.3.2, webrat 0.7.3. My spec_helper.rb ENV["RAILS_ENV"] ||= ''test'' require File.expand_path(File.join(File.dirname(__FILE__),''..'',''config'',''environment'')) require ''spec/autorun'' require ''spec/rails'' require
2012 Feb 24
3
Devise generates Mailer by its own?
Rails 3.1.3 Hi. I''m a little confused with Devise and ActionMailer. It seems that Devise has its own way of sending mails through ActionMailer. Does it generate Mailer class when "rails g devise..." command is executed? Or do I need to do some special command in order to generate Mailer? I have certainly set up a devise User table but there is no Mailer class for it,
2013 Mar 20
2
Rspec + Devise + BaseController
Hello there, I''m creating a base controller for the admin section of a project. All controllers whitin the admin section will inherit from it. ##################################################### #app/controllers/admins/base_controller.rb class Admins::BaseController < ApplicationController layout "admin_cms" before_filter :authenticate_admin! end
2012 Jan 26
0
Show action with Devise
Hi, Devise has edit and new views for registrations, I''d like to add a show view to display that information. How can I do that? If I overwrite the controller RegistrationsController < Devise::RegistrationsController, it says: "Missing template registrations/show, ...", but I want to render the view that is inside users/registrations (the generated view for "rails
2013 Mar 07
0
custom table_name for table users with devise
Hi for my app, I have several tables for users (franceusers, belgiumusers, ...) and I would like to use one or another depending on domain I tried with table_name_prefix and table_name but it seems to not work class User < ActiveRecord::Base rolify # Include default devise modules. Others available are: # :token_authenticatable, :confirmable, # :lockable, :timeoutable and
2010 Aug 08
0
registerable method undefined in Devise migration (was Re: Re: No route matches)
On 8 August 2010 23:39, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > I tried to make the application from scratch again, and > notices that I get the following when I run: $ rake db:migrate > > (in /Users/abder/Desktop/Rails/auth) > ==  DeviseCreateUsers: migrating > ============================================== > -- create_table(:users)