From e1eb40710e97edc2773ed22a383f01716521dc81 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 17 Mar 2015 22:59:14 -0500 Subject: [PATCH] Stub out /settings. --- app/controllers/users_controller.rb | 6 ++++++ app/views/shared/_header.html.erb | 1 + app/views/users/settings.html.erb | 3 +++ config/routes.rb | 22 ++++++++++++---------- 4 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 app/views/users/settings.html.erb diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 09f57b1..e3235da 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -47,4 +47,10 @@ class UsersController < ApplicationController # do user reset logic end end + + def settings + if request.post? + # do settings save logic + end + end end diff --git a/app/views/shared/_header.html.erb b/app/views/shared/_header.html.erb index 4648a7b..e47f180 100644 --- a/app/views/shared/_header.html.erb +++ b/app/views/shared/_header.html.erb @@ -9,6 +9,7 @@