summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-09-03 11:06:20 +0200
committerAzul <azul@leap.se>2013-09-03 11:06:20 +0200
commite81357bcb0be14a08aa185680b8b98ea92e45fab (patch)
tree3b13dc010b3a58b7d386adeb11a4da25cfc7ad95
parent78e918609a2a5cf9e0222dab81888de968e33222 (diff)
use the login logout named route instead of sessions resource
The main part of the sessions resource now lives in the API. the two named routes are just fine for what is left.
-rw-r--r--core/app/views/common/_home_page_buttons.html.haml2
-rw-r--r--users/config/routes.rb1
2 files changed, 1 insertions, 2 deletions
diff --git a/core/app/views/common/_home_page_buttons.html.haml b/core/app/views/common/_home_page_buttons.html.haml
index 82a5cc2..7eb4c40 100644
--- a/core/app/views/common/_home_page_buttons.html.haml
+++ b/core/app/views/common/_home_page_buttons.html.haml
@@ -9,7 +9,7 @@
.span3
.row-fluid.second
.login.span4
- %span.link= link_to(icon('ok-sign', icon_color) + t(:login), new_session_path, :class => 'btn')
+ %span.link= link_to(icon('ok-sign', icon_color) + t(:login), login_path, :class => 'btn')
%span.info= t(:login_info)
.signup.span4
%span.link= link_to(icon('user', icon_color) + t(:signup), new_user_path, :class => 'btn')
diff --git a/users/config/routes.rb b/users/config/routes.rb
index d4d5933..ccecfd5 100644
--- a/users/config/routes.rb
+++ b/users/config/routes.rb
@@ -10,7 +10,6 @@ Rails.application.routes.draw do
get "login" => "sessions#new", :as => "login"
delete "logout" => "sessions#destroy", :as => "logout"
- resources :sessions, :only => [:new, :create, :update]
get "signup" => "users#new", :as => "signup"
resources :users, :except => [:create, :update] do