Fix bug with auth config parsing
This commit is contained in:
@ -4,5 +4,5 @@ Rails.application.routes.draw do
|
||||
resources :products
|
||||
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
||||
|
||||
root to: "home#index"
|
||||
root to: "products#index"
|
||||
end
|
||||
|
@ -13,6 +13,19 @@ customer_count = 100
|
||||
product_count = 50
|
||||
purchase_count = 100
|
||||
|
||||
3.times do |i|
|
||||
user = User.create(
|
||||
full_name: Faker::Name.name,
|
||||
avatar: Faker::Avatar.image,
|
||||
phone: Faker::PhoneNumber.cell_phone,
|
||||
email: "user#{i}@example.com",
|
||||
password: pwd,
|
||||
password_confirmation: pwd
|
||||
)
|
||||
user.save!
|
||||
puts user.inspect
|
||||
end
|
||||
|
||||
user_count.times do |i|
|
||||
user = User.create(
|
||||
full_name: Faker::Name.name,
|
||||
|
Reference in New Issue
Block a user