Skip to content

Commit 8f1e22f

Browse files
committed
Added the beginnings of help.
Right now, just a link to GitHub.
1 parent 6b3ce8c commit 8f1e22f

6 files changed

Lines changed: 19 additions & 1 deletion

File tree

controllers/help.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#this is where we can go to get help
2+
get "/help" do
3+
haml :"help/index"
4+
end

features/help.feature

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Feature: Getting Help
2+
Scenario: Contributor help
3+
Given I go to the help page
4+
When I follow "GitHub"
5+
Then I should be on the github page

features/homepage.feature

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ Feature: Homepage looks correct
22
Scenario: We should see a download link
33
Given I go to the homepage
44
Then I should see "Download Hackety"
5+
Scenario: We should be able to get help
6+
Given I go to the homepage
7+
When I follow "Help"
8+
Then I should be on the help page

features/support/paths.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ def path_to(page_name)
4848
"/forums"
4949
when /the discussion "(.*)"/
5050
"/forums/#{$1}"
51+
when /the help page/
52+
"/help"
53+
when /the github page/
54+
"/hacketyhack/hacketyhack/"
5155

5256
# Add more mappings here.
5357
# Here is an example that pulls values out of the Regexp:

views/help/index.haml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
%a{:href => "http://wiki.github.com/hacketyhack/hacketyhack/"} GitHub

views/layout.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
%nav{:style => "float:right;"}
1010
%a{:href => "/"}Home \
1111
%a{:href => "/blog"}Blog \
12-
%a{:href => "http://github.com/hacketyhack/hacketyhack"}Help \
12+
%a{:href => "/help"}Help \
1313
%a{:href => "/forums"}Forums \
1414
- if logged_in?
1515
%a{:href => "/hackers/#{current_user.username}" }Your Page \

0 commit comments

Comments
 (0)