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 @@
<% if @user %>
- <%= @user.name %> [<%= Calefaction::EVE.corp_ticker @user.corp_id %>]
+ - <%= link_to 'Settings', controller: 'users', action: 'settings' %>
<% if @user.admin? %>
- <%= link_to 'Admin', controller: 'admin', action: 'index' %>
<% end %>
diff --git a/app/views/users/settings.html.erb b/app/views/users/settings.html.erb
new file mode 100644
index 0000000..c2b56ea
--- /dev/null
+++ b/app/views/users/settings.html.erb
@@ -0,0 +1,3 @@
+<% provide(:title, 'Settings') %>
+
+Account Settings
diff --git a/config/routes.rb b/config/routes.rb
index f6b49aa..bb4c866 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,17 +1,19 @@
Rails.application.routes.draw do
root 'tools#index'
- get '/signup' => 'users#signup'
- post '/signup' => 'users#signup'
- get '/login' => 'users#login'
- post '/login' => 'users#login'
- get '/logout' => 'users#logout'
- post '/logout' => 'users#logout'
- get '/reset' => 'users#reset'
- post '/reset' => 'users#reset'
+ get '/signup' => 'users#signup'
+ post '/signup' => 'users#signup'
+ get '/login' => 'users#login'
+ post '/login' => 'users#login'
+ get '/logout' => 'users#logout'
+ post '/logout' => 'users#logout'
+ get '/reset' => 'users#reset'
+ post '/reset' => 'users#reset'
+ get '/settings' => 'users#settings'
+ post '/settings' => 'users#settings'
- get '/admin' => 'admin#index'
- post '/admin' => 'admin#update'
+ get '/admin' => 'admin#index'
+ post '/admin' => 'admin#update'
# routes for each tool go here, e.g.:
# get 'tools#campaigns'