Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #2157

Unable to Seed User Data in Authlogic

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail
From Dan King <dan.king106@yahoo.com>
Newsgroups comp.lang.ruby
Subject Unable to Seed User Data in Authlogic
Date Sat, 2 Apr 2011 11:45:46 -0500
Organization Service de news de lacave.net
Lines 42
Message-ID <e812a5b1759ec2552106a82973e1024c@ruby-forum.com> (permalink)
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1301762770 91978 65.111.164.187 (2 Apr 2011 16:46:10 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Sat, 2 Apr 2011 16:46:10 +0000 (UTC)
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 380804
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <e812a5b1759ec2552106a82973e1024c@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:2157

Show key headers only | View raw


When I run rake db:seed in my Rails 3 application I get the following
error; anyone know how to resolve it?

rake aborted!
undefined method
'find_or_create_by_first_name_and_last_name_and_role_and_email_and_password_and_password_confirmation'

Below are my create_users.rb,user.rb, and seeds.rb files respectively.

create_users.rb:

def self.up
    create_table :users do |t|
      t.string :first_name, :null => false
      t.string :last_name, :null => false
      t.string :role, :null => false
      t.string :email, :null => false
      t.string :crypted_password, :null => false
      t.string :password_salt, :null => false
      t.string :persistence_token, :null => false
      t.string :current_login_ip
      t.string :last_login_ip
      t.datetime :current_login_at
      t.datetime :last_login_at

      t.timestamps
    end
  end

user.rb:

class User < ActiveRecord::Base
  acts_as_authentic
end

seeds.rb:

User.find_or_create_by_first_name_and_last_name_and_role_and_email_and_password_and_password_confirmation(...)

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Unable to Seed User Data in Authlogic Dan King <dan.king106@yahoo.com> - 2011-04-02 11:45 -0500
  Re: Unable to Seed User Data in Authlogic 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-02 13:13 -0500
    Re: Unable to Seed User Data in Authlogic Dan King <dan.king106@yahoo.com> - 2011-04-02 14:17 -0500

csiph-web