From 96e0095878d14aab99db64a6afccebf784ae85f7 Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Fri, 24 May 2013 19:51:09 -0400 Subject: [PATCH] moving in the right direction --- app/controllers/retirement_controller.rb | 7 +++++++ app/helpers/retirement_helper.rb | 2 ++ app/views/layouts/shared/_sidebar.html.erb | 4 ++-- app/views/retirement/index.html.erb | 0 config/routes.rb | 5 +++++ test/functional/retirement_controller_test.rb | 7 +++++++ test/unit/helpers/retirement_helper_test.rb | 4 ++++ 7 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 app/controllers/retirement_controller.rb create mode 100644 app/helpers/retirement_helper.rb create mode 100644 app/views/retirement/index.html.erb create mode 100644 test/functional/retirement_controller_test.rb create mode 100644 test/unit/helpers/retirement_helper_test.rb diff --git a/app/controllers/retirement_controller.rb b/app/controllers/retirement_controller.rb new file mode 100644 index 0000000..1a376ee --- /dev/null +++ b/app/controllers/retirement_controller.rb @@ -0,0 +1,7 @@ +class RetirementController < ApplicationController + + def index + @info = current_user.retirement + end + +end diff --git a/app/helpers/retirement_helper.rb b/app/helpers/retirement_helper.rb new file mode 100644 index 0000000..ff34695 --- /dev/null +++ b/app/helpers/retirement_helper.rb @@ -0,0 +1,2 @@ +module RetirementHelper +end diff --git a/app/views/layouts/shared/_sidebar.html.erb b/app/views/layouts/shared/_sidebar.html.erb index 4b11965..0be4bcd 100755 --- a/app/views/layouts/shared/_sidebar.html.erb +++ b/app/views/layouts/shared/_sidebar.html.erb @@ -27,12 +27,12 @@
  • - + <%= link_to user_retirement_index_path(:user_id => current_user.user_id) do %>
    401k Info -
    + <% end %>
  • diff --git a/app/views/retirement/index.html.erb b/app/views/retirement/index.html.erb new file mode 100644 index 0000000..e69de29 diff --git a/config/routes.rb b/config/routes.rb index 9c50183..c622a41 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -10,6 +10,11 @@ end resources :users do get "account_settings" + + resources :retirement do + + end + end resources :tutorials do diff --git a/test/functional/retirement_controller_test.rb b/test/functional/retirement_controller_test.rb new file mode 100644 index 0000000..9f23c11 --- /dev/null +++ b/test/functional/retirement_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class RetirementControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/unit/helpers/retirement_helper_test.rb b/test/unit/helpers/retirement_helper_test.rb new file mode 100644 index 0000000..e7dcb8f --- /dev/null +++ b/test/unit/helpers/retirement_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class RetirementHelperTest < ActionView::TestCase +end