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