Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cleaned up routes.rb

  • Loading branch information...
commit eea2a868b2a7f2ffebd02a27d4bb0e069597b272 1 parent 61993bc
Pete Forde authored
Showing with 4 additions and 5 deletions.
  1. +1 −1  app/controllers/users_controller.rb
  2. +3 −4 config/routes.rb
View
2  app/controllers/users_controller.rb
@@ -1,5 +1,5 @@
class UsersController < ApplicationController
- skip_before_filter :require_login, :only => [:new, :create,:home]
+ skip_before_filter :require_login, :only => [:new, :create, :home]
def new
@user = User.new
end
View
7 config/routes.rb
@@ -1,14 +1,13 @@
RailStrap::Application.routes.draw do
+ root :to => "users#home"
+
get "log_out" => "sessions#destroy", :as => "log_out"
get "log_in" => "sessions#new", :as => "log_in"
+ post "sessions" => "sessions#create", :as => ""
get "sign_up" => "users#new", :as => "sign_up"
- root :to => "users#home"
- match '/users/tests' => 'users#tests'
resources :users
- resources :sessions
-
# The priority is based upon order of creation:
# first created -> highest priority.
Please sign in to comment.
Something went wrong with that request. Please try again.