-
Notifications
You must be signed in to change notification settings - Fork 0
/
controller.rb
65 lines (51 loc) · 1.17 KB
/
controller.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
require 'sass'
# set default layout
layout /.*html.erb/ => 'layout.html.erb'
# ignore files with a leading underline (ex: partials)
ignore /\/_.*/
before 'index.html.erb' do
@body_class = "home"
end
before 'index.html.erb' do
@nav_home = true
end
before '/gallery/index.html.erb' do
@body_class = "gallery"
@nav_gallery = true
end
before '/gallery/kitchens/index.html.erb' do
@body_class = "gallery"
@nav_gallery = true
end
before '/gallery/baths/index.html.erb' do
@body_class = "gallery"
@nav_gallery = true
end
before '/gallery/interiors/index.html.erb' do
@body_class = "gallery"
@nav_gallery = true
end
before '/gallery/exteriors/index.html.erb' do
@body_class = "gallery"
@nav_gallery = true
end
before '/about/index.html.erb' do
@body_class = "about"
@nav_about = true
end
before '/testimonials/index.html.erb' do
@body_class = "testimonials"
@nav_testimonials = true
end
before '/resources/index.html.erb' do
@body_class = "resources"
@nav_resources = true
end
before '/process/index.html.erb' do
@body_class = "process"
@nav_process = true
end
before '/contact/index.html.erb' do
@body_class = "contact"
@nav_contact = true
end