Skip to content

add static page to user model#93

Open
CLJoker wants to merge 1 commit intohellovietnam93:dao_bao_quang_20143564from
CLJoker:sugoi_page_03
Open

add static page to user model#93
CLJoker wants to merge 1 commit intohellovietnam93:dao_bao_quang_20143564from
CLJoker:sugoi_page_03

Conversation

@CLJoker
Copy link

@CLJoker CLJoker commented Mar 21, 2017

sign up

sign up + deleted folder static page

Gemfile Outdated
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sử dụng nháy kép thay cho nháy đơn

Gemfile Outdated
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xóa tất cả comment trong file này

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file này k dùng thì xóa đi nhé

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file này k dùng thì xóa đi

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 dấu csh sau dấu : thôi nhé

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cách ra trước và sau %

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xóa () + sử dụng nháy kép

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xóa ()

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xóa ()

config/routes.rb Outdated
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xóa () 1 dấu cách để ngăn thôi nhé

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ident, lùi so với dòng bên trên thôi

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

params.require(:user).permit :name ....
em k test code à?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ident

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xóa ()

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ident

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cái j đya?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nữa

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sư dụng ""

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
gem "bcrypt", "3.1.7"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e xóa dòng này và các dòng 13, 15, 17, 19, 21, 23, 25, 27 nhé

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove ( )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove ()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thiếu khoảng trắng
viết đúng convention thì như này em nhé:
<%= link_to "Sample App", "#", id: "logo" %>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

config/routes.rb Outdated

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e xóa dòng này và các dòng 5, 7, 9, 11 nhé

config/routes.rb Outdated

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment

# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Character.create(name: 'Luke', movie: movies.first)
10.times do |n|
User.create name: "User #{n}", email: "email-#{n}@gmail.com"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e xóa hết comment trong file này và sửa lại cách viết dòng này nhé:
User.create! name: "User #{n}", email: "email-#{n}@gmail.com"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use double quote " " in Rails

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use double quote " " in Rails

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ident, sao lại lùi vòa thé?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

params.require(:user)

sign up

sign up + deleted folder static page

readd

fix

fix second time

fix time 3

fix time 4

fix time 5

fix 6 time
end

gem "rails", "~> 5.0.2"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xóa dòng này em nhé

# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem "bcrypt", "3.1.7"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xóa dòng nhé

<nav>
<ul>
<li><%= link_to "About", static_pages_about_path %></li>
<li><%= link_to "Contact", '#' %></li>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use double quote " " in Rails

@@ -0,0 +1,11 @@
<%provide :title, "Home"%>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thiếu khoảng trắng

This is the home page for the <a href="http://www.railstutorial.org/">
Ruby on Rails Tutorial</a> sample application.
</h2>
<%= link_to "Sign up now!", "#", class: "btn btn-lg btn-primary"%>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thiếu khoảng trắng

# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Character.create(name: 'Luke', movie: movies.first)
10.times do |n|
User.create name: "User #{n}", email: "email-#{n}@gmail.com"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e thêm dấu chấm than ! ngay sau create nhé:

User.create! name: "User #{n}", email: "email-#{n}@gmail.com"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments