title: NameError: uninitialized constant Faker
body: <p>I am trying to run a simple bundle exec rake db:seed for my database in Rails 4.  However, when running it, I get the following output: </p>
  
  <pre><code>********-C02MGBVJFD57:myapp ***********$ bundle exec rake db:seed
  Your Gemfile lists the gem factory_girl_rails (&gt;= 0) more than once.
  You should probably keep only one of them.
  While it's not a problem now, it could cause errors if you change the version of just one of them later.
  rake aborted!
  NameError: uninitialized constant Faker
  /Users/**********/workspace/myapp/db/seeds.rb:16:in `block in &lt;top (required)&gt;'
  /Users/**********/workspace/myapp/db/seeds.rb:15:in `times'
  /Users/**********/workspace/myapp/db/seeds.rb:15:in `&lt;top (required)&gt;'
  /Users/**********/.rvm/gems/ruby-2.1.2@myapp/gems/railties-4.1.4/lib/rails/engine.rb:543:in `load_seed'
  /Users/**********/.rvm/gems/ruby-2.1.2@myapp/gems/activerecord-4.1.4/lib/active_record/tasks/database_tasks.rb:184:in `load_seed'
  /Users/**********/.rvm/gems/ruby-2.1.2@myapp/gems/activerecord-4.1.4/lib/active_record/railties/databases.rake:173:in `block (2 levels) in &lt;top (required)&gt;'
  Tasks: TOP =&gt; db:seed
  (See full trace by running task with --trace)
  </code></pre>
  
  <p>Here is my seeds.rb file:</p>
  
  <pre><code>User.create!(
    name:                  "Example User",
    email:                 "example@railstutorial.org",
    password:              "foobar",
    password_confirmation: "foobar",
    admin:                 true
  )
  
  99.times do |n|
    name     = Faker::Name.name
    email    = "example-#{n+1}@railstutorial.org"
    password = "password"
    User.create!(
      name:                  name,
      email:                 email,
      password:              password,
      password_confirmation: password
    )
  end
  </code></pre>
  
  <p>Line 16 is:</p>
  
  <pre><code>name = Faker::Name.name
  </code></pre>
  
  <p>Any ideas why I am getting this error?  Thank you.  </p>