Commit a77da3d8 by Tan Phat Nguyen

static page contact

parent 308b7f5e
class StaticPagesController < ApplicationController class StaticPagesController < ApplicationController
def home def self.home
end end
def help def help
......
...@@ -5,22 +5,25 @@ ...@@ -5,22 +5,25 @@
# gem 'sqlite3' # gem 'sqlite3'
# #
default: &default default: &default
adapter: mysql2 #adapter: mysql2
username: root #username: root
password: root #password: root
adapter: sqlite3
pool: 5 pool: 5
timeout: 5000 timeout: 5000
development: development:
<<: *default <<: *default
database: venshop_dev #database: venshop_dev
database: db/development.sqlite3
# Warning: The database defined as "test" will be erased and # Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake". # re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production. # Do not set this db to the same as development or production.
test: test:
<<: *default <<: *default
database: venshop_test #database: venshop_test
database: db/test.sqlite3
production: production:
<<: *default <<: *default
......
...@@ -24,7 +24,7 @@ class StaticPagesControllerTest < ActionController::TestCase ...@@ -24,7 +24,7 @@ class StaticPagesControllerTest < ActionController::TestCase
end end
test "should get contact" do test "should get contact" do
get :about get :contact
assert_response :success assert_response :success
assert_select "title", "Contact | #{@base_title}" assert_select "title", "Contact | #{@base_title}"
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