/Users/megaputer/.rvm/gems/ruby-1.9.3-p545/gems/faker-1.4.1/lib/faker.rb:10:in `<top (required)>': undefined method `enforce_available_locales=' for I18n:Module (NoMethodError)
I'm really not sure how to proceed, I suspect that I need to specify a specific version of Faker to work with Rails 3.2.13 and Ruby 1.9.3p545, but I haven't been able to find much on my own searching online.
Please Help!
Thanks in advance,
Megan
--
You received this message because you are subscribed to the Google Groups "Ruby Faker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-faker+...@googlegroups.com.
To post to this group, send email to ruby-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ruby-faker.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Ruby Faker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-faker+...@googlegroups.com.
To post to this group, send email to ruby-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ruby-faker.
For more options, visit https://groups.google.com/d/optout.
namespace :db dodesc "Create user records in the current database."task :fake_users => :environment dorequire 'faker'@countries = ["United States", "Canada", "United Kingdom", "Germany", "Mexico"]@genders = ["Male","Female"]@privacy = ["members", "public"]def random_date(params={})years_back = params[:year_range] || 5latest_year = params [:year_latest] || 0year = (rand * (years_back)).ceil + (Time.now.year - latest_year - years_back)month = (rand * 12).ceilday = (rand * 31).ceildate = Time.nowseries = [date]if params[:series]params[:series].each do |some_time_after|series << series.last + (rand * some_time_after).ceilendreturn seriesenddateend100.times doUser.create!(:first_name => Faker::Name.first_name,:last_name => Faker::Name.last_name,:birthdate => random_date(:year_range => 60, :year_latest => 22),:created_at => random_date(:year_range => 4, :year_latest => 0),:city => Faker::Lorem.words(1).to_s.capitalize,:state => Faker::Address.us_state(),:country => @countries.rand.to_s,:password => "foobar",:password_confirmation => "foobar",:accepts_terms_and_conditions => true,:gender => @genders.rand.to_s,:email => Faker::Internet.email)endendend
--