diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index 593abe4..41d4236 100755 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -4,6 +4,11 @@ class DashboardController < ApplicationController def home @user = current_user + + # See if the user has a font preference + if params[:font] + cookies[:font] = params[:font] + end end end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 4720e04..01d0022 100755 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -6,13 +6,13 @@ <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> - - - - +<% +if cookies[:font] +%> + +<% +end +%> diff --git a/app/views/layouts/shared/_header.html.erb b/app/views/layouts/shared/_header.html.erb index 7c4d310..95f1b31 100755 --- a/app/views/layouts/shared/_header.html.erb +++ b/app/views/layouts/shared/_header.html.erb @@ -1,8 +1,10 @@
- + + Font Size: + A + A +
profile