Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A Navigation feature is green.

  • Loading branch information...
commit e5a37cf788c003fd2f9cfe470f45e843b61fe9ff 1 parent c13e00b
@ffbit authored
View
3  app/views/layouts/_header_links.html.erb
@@ -0,0 +1,3 @@
+<%= link_to 'Sign up', signup_path %>
+<%= link_to 'Sign in', signin_path %>
+<%= link_to 'Home', root_path %>
View
1  app/views/layouts/application.html.erb
@@ -8,6 +8,7 @@
</head>
<body>
<%= render 'layouts/flash_messages' %>
+ <%= render 'layouts/header_links' %>
<%= yield %>
</body>
View
5 config/routes.rb
@@ -10,14 +10,17 @@
devise_for :users, :skip => [:registrations, :sessions, :password] do
# registrations
get 'signup' => 'devise/registrations#new', :as => :new_user_registration
+ get 'signup' => 'devise/registrations#new', :as => :signup
post 'signup' => 'devise/registrations#create', :as => :user_registration
get 'users/edit' => 'devise/registrations#edit', :as => :edit_user_registration
put 'users' => 'devise/registrations'
- # sign up-out
+ # sign in-out
get 'signin' => 'devise/sessions#new', :as => :new_user_session
+ get 'signin' => 'devise/sessions#new', :as => :signin
post 'signin' => 'devise/sessions#create', :as => :user_session
get 'signout' => 'devise/sessions#destroy', :as => :destroy_user_session
+ get 'signout' => 'devise/sessions#destroy', :as => :signout
end
devise_scope :user do
View
11 features/navigation.feature
@@ -0,0 +1,11 @@
+@navigation
+Feature: Navigation
+ In order to have public links
+ As a visitor
+ I want to follow them
+
+ Scenario: Home Page
+ Given I'm on the home page
+ Then I should see "Sign up" link
+ And I should see "Sign in" link
+ And I should see "Home" link
Please sign in to comment.
Something went wrong with that request. Please try again.