From 84eec1e24b8898af6647336cea02a306c1812d4a Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Wed, 24 Apr 2013 21:17:02 -0400 Subject: [PATCH] added a correct registration page --- app/controllers/sessions_controller.rb | 5 ++- app/controllers/users_controller.rb | 7 ++++ app/views/layouts/tutorial/_header.html.erb | 2 +- app/views/users/new.html.erb | 40 +++++++++++++++++++-- config/routes.rb | 9 +++++ 5 files changed, 59 insertions(+), 4 deletions(-) diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index d7c9a87..4e35018 100755 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -1,8 +1,11 @@ class SessionsController < ApplicationController - skip_before_filter :authenticated, :only => [:new] + skip_before_filter :authenticated, :only => [:new, :create] def new end + + def create + end end diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 2ec9ecc..c60dfea 100755 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,4 +1,11 @@ class UsersController < ApplicationController + + skip_before_filter :authenticated, :only => [:new, :create] + def new end + + def create + end + end diff --git a/app/views/layouts/tutorial/_header.html.erb b/app/views/layouts/tutorial/_header.html.erb index 6a9c0a3..76f59ce 100644 --- a/app/views/layouts/tutorial/_header.html.erb +++ b/app/views/layouts/tutorial/_header.html.erb @@ -4,7 +4,7 @@ <% if not current_user %>