Commit 45b238af by Đường Sỹ Hoàng

Fixed identation

parent e4cbd8cd
...@@ -8,7 +8,7 @@ class UsersController < ApplicationController ...@@ -8,7 +8,7 @@ class UsersController < ApplicationController
def show def show
@user = User.find(params[:id]) @user = User.find(params[:id])
end end
def new def new
@user = User.new @user = User.new
......
User.create!(name: "Example User",email: "example@railstutorial.org",password:"foobar",password_confirmation: "foobar",admin: true) User.create!(name: "Example User", email: "example@railstutorial.org", password:"foobar", password_confirmation: "foobar")
99.times do |n| 99.times do |n|
name = Faker::Name.name name = Faker::Name.name
email = "example-#{n+1}@railstutorial.org" email = "example-#{n+1}@railstutorial.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)
end end
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