Commit a11f9f2d by Mai Hoang Thai Ha

fix faker gem bugs

parent 2aec1fc0
Pipeline #1269 failed with stages
in 0 seconds
......@@ -6,8 +6,8 @@ ruby '3.0.1'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 6.1.3', '>= 6.1.3.2'
gem 'bcrypt', '3.1.13'
gem 'faker', '2.1.2'
gem 'will_paginate', '3.1.8'
gem 'faker', '~> 2.18'
gem 'will_paginate', '~> 3.3.0'
gem 'bootstrap-will_paginate'
gem 'bootstrap-sass', '3.4.1'
gem 'autoprefixer-rails'
......
......@@ -90,8 +90,8 @@ GEM
crass (1.0.6)
erubi (1.10.0)
execjs (2.8.1)
faker (2.1.2)
i18n (>= 0.8)
faker (2.18.0)
i18n (>= 1.6, < 2)
ffi (1.15.1)
formatador (0.2.5)
globalid (0.4.2)
......@@ -240,7 +240,7 @@ GEM
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
will_paginate (3.1.8)
will_paginate (3.3.0)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.4.2)
......@@ -256,7 +256,7 @@ DEPENDENCIES
bootstrap-will_paginate
byebug
capybara (>= 3.26)
faker (= 2.1.2)
faker (~> 2.18)
guard (= 2.16.2)
guard-minitest (= 2.4.6)
jbuilder (~> 2.7)
......@@ -278,7 +278,7 @@ DEPENDENCIES
web-console (>= 4.1.0)
webdrivers
webpacker (~> 5.0)
will_paginate (= 3.1.8)
will_paginate (~> 3.3.0)
RUBY VERSION
ruby 3.0.1p64
......
<%= provide(:title, 'All users') %>
<h1>All users</h1>
<%= will_paginate @articles%>
<%= will_paginate %>
<ul class="users">
<% @users.each do |user| %>
......@@ -12,4 +12,4 @@
<% end %>
</ul>
<%= will_paginate @articles%>
\ No newline at end of file
<%= will_paginate %>
\ No newline at end of file
......@@ -4,7 +4,7 @@ User.create!( name: "Example User",
password_confirmation: "foobar")
99.times do |num|
name = "Sample user #{num+1}"
name = Faker::Name.name
email = "example-#{num+1}@railstutorials.org"
password = "password"
User.create!(name: name, email: email, password: password, password_confirmation: password)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment