diff --git a/Gemfile b/Gemfile
index 5f3b37b..b5fbf94 100644
--- a/Gemfile
+++ b/Gemfile
@@ -8,7 +8,6 @@ end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.2'
-gem 'bootstrap-sass','3.3.6'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
diff --git a/Gemfile.lock b/Gemfile.lock
index 10e3cd1..813f681 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -39,11 +39,6 @@ GEM
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (7.1.4)
- autoprefixer-rails (6.7.7)
- execjs
- bootstrap-sass (3.3.6)
- autoprefixer-rails (>= 5.2.1)
- sass (>= 3.3.4)
builder (3.2.3)
byebug (9.0.6)
coffee-rails (4.2.1)
@@ -159,7 +154,6 @@ PLATFORMS
ruby
DEPENDENCIES
- bootstrap-sass (= 3.3.6)
byebug
coffee-rails (~> 4.2)
jbuilder (~> 2.5)
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 5b33d60..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2017 TrungNT
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/app/assets/javascripts/static_pages.coffee b/app/assets/javascripts/static_pages.coffee
deleted file mode 100644
index 24f83d1..0000000
--- a/app/assets/javascripts/static_pages.coffee
+++ /dev/null
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
diff --git a/app/assets/stylesheets/custom.scss b/app/assets/stylesheets/custom.scss
deleted file mode 100644
index abccfca..0000000
--- a/app/assets/stylesheets/custom.scss
+++ /dev/null
@@ -1,2 +0,0 @@
-@import "bootstrap-sprockets";
-@import "bootstrap";
\ No newline at end of file
diff --git a/app/assets/stylesheets/static_pages.scss b/app/assets/stylesheets/static_pages.scss
deleted file mode 100644
index d55836c..0000000
--- a/app/assets/stylesheets/static_pages.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-// Place all the styles related to the StaticPages controller here.
-// They will automatically be included in application.css.
-// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb
deleted file mode 100644
index c76b925..0000000
--- a/app/controllers/static_pages_controller.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-class StaticPagesController < ApplicationController
- def home
- end
-
- def help
- end
-end
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 8f0099d..de6be79 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,12 +1,2 @@
module ApplicationHelper
-
- # Trả về title đầy của trên từng trang
- def full_title page_title = ''
- base_title = "Ruby on Rails Tutorial Sample App"
- if page_title.empty?
- base_title
- else
- page_title + " | " + base_title
- end
- end
end
diff --git a/app/helpers/static_pages_helper.rb b/app/helpers/static_pages_helper.rb
deleted file mode 100644
index 2d63e79..0000000
--- a/app/helpers/static_pages_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module StaticPagesHelper
-end
diff --git a/app/models/user.rb b/app/models/user.rb
new file mode 100644
index 0000000..0f76710
--- /dev/null
+++ b/app/models/user.rb
@@ -0,0 +1,16 @@
+class User < ApplicationRecord
+
+ validate :valid_phone
+ validate :valid_birthday
+
+ def valid_birthday
+ if( (Time.now.year-birthday.year)>90.years || (Time.now.year-birthday.year)<7.years )
+ errors.add :birhtday, "ngay sinh tu 7-90 nam truoc"
+ end
+ end
+ def valid_phone
+ if(phone.length != 10 || phone[0] !='0')
+ errors.add :phone, "invalid phone"
+ end
+ end
+end
diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb
deleted file mode 100644
index 0eebc8b..0000000
--- a/app/views/layouts/_header.html.erb
+++ /dev/null
@@ -1,12 +0,0 @@
-