Fix bug with auth config parsing

This commit is contained in:
Vikram Rangnekar
2019-04-09 08:43:42 -04:00
parent 2d02f2afda
commit 96adec81bd
7 changed files with 68 additions and 19 deletions

View File

@ -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

View File

@ -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,