Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2157 > unrolled thread
| Started by | Dan King <dan.king106@yahoo.com> |
|---|---|
| First post | 2011-04-02 11:45 -0500 |
| Last post | 2011-04-02 14:17 -0500 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.ruby
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
| From | Dan King <dan.king106@yahoo.com> |
|---|---|
| Date | 2011-04-02 11:45 -0500 |
| Subject | Unable to Seed User Data in Authlogic |
| Message-ID | <e812a5b1759ec2552106a82973e1024c@ruby-forum.com> |
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/.
[toc] | [next] | [standalone]
| From | 7stud -- <bbxx789_05ss@yahoo.com> |
|---|---|
| Date | 2011-04-02 13:13 -0500 |
| Message-ID | <47b2b5aa500e92a6fe3c92014c1ed6c0@ruby-forum.com> |
| In reply to | #2157 |
So this is a Rails question? Yet, this is not a Rails forum. Hmmm... -- Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [next] | [standalone]
| From | Dan King <dan.king106@yahoo.com> |
|---|---|
| Date | 2011-04-02 14:17 -0500 |
| Message-ID | <3eb5ca30d988d977d024d61f09c3b2bb@ruby-forum.com> |
| In reply to | #2158 |
7stud -- wrote in post #990565: > So this is a Rails question? Yet, this is not a Rails forum. Hmmm... I thought I had selected the 'Rails' forum in the mailing list interface, evidently I hadn't. Sorry. -- Posted via http://www.ruby-forum.com/.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.ruby
csiph-web