Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sample_app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tan Phat Nguyen
sample_app
Commits
a77da3d8
Commit
a77da3d8
authored
Nov 04, 2014
by
Tan Phat Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
static page contact
parent
308b7f5e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
app/controllers/static_pages_controller.rb
+1
-1
config/database.yml
+8
-5
test/controllers/static_pages_controller_test.rb
+1
-1
No files found.
app/controllers/static_pages_controller.rb
View file @
a77da3d8
class
StaticPagesController
<
ApplicationController
def
home
def
self
.
home
end
def
help
...
...
config/database.yml
View file @
a77da3d8
...
...
@@ -5,22 +5,25 @@
# gem 'sqlite3'
#
default
:
&default
adapter
:
mysql2
username
:
root
password
:
root
#adapter: mysql2
#username: root
#password: root
adapter
:
sqlite3
pool
:
5
timeout
:
5000
development
:
<<
:
*default
database
:
venshop_dev
#database: venshop_dev
database
:
db/development.sqlite3
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test
:
<<
:
*default
database
:
venshop_test
#database: venshop_test
database
:
db/test.sqlite3
production
:
<<
:
*default
...
...
test/controllers/static_pages_controller_test.rb
View file @
a77da3d8
...
...
@@ -24,7 +24,7 @@ class StaticPagesControllerTest < ActionController::TestCase
end
test
"should get contact"
do
get
:
abou
t
get
:
contac
t
assert_response
:success
assert_select
"title"
,
"Contact |
#{
@base_title
}
"
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment