From 7a4efaa950bd42b93f6f9c446b365f728f741983 Mon Sep 17 00:00:00 2001 From: cktricky Date: Sat, 15 Mar 2014 10:28:52 -0400 Subject: [PATCH] added the basic components to begin working on the pay index view --- app/controllers/pay_controller.rb | 5 +++++ app/views/layouts/shared/_sidebar.html.erb | 2 +- app/views/pay/index.html.erb | 9 +++++++++ config/routes.rb | 3 +++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 app/views/pay/index.html.erb diff --git a/app/controllers/pay_controller.rb b/app/controllers/pay_controller.rb index a91df4f..3efacd2 100644 --- a/app/controllers/pay_controller.rb +++ b/app/controllers/pay_controller.rb @@ -1,2 +1,7 @@ class PayController < ApplicationController + + def index + + end + end diff --git a/app/views/layouts/shared/_sidebar.html.erb b/app/views/layouts/shared/_sidebar.html.erb index 19dd55e..7114b08 100755 --- a/app/views/layouts/shared/_sidebar.html.erb +++ b/app/views/layouts/shared/_sidebar.html.erb @@ -67,7 +67,7 @@ <% end %>
  • - <%= link_to "#" do %> + <%= link_to user_pay_index_path(:user_id => current_user.user_id) do %>
    diff --git a/app/views/pay/index.html.erb b/app/views/pay/index.html.erb new file mode 100644 index 0000000..f7c7154 --- /dev/null +++ b/app/views/pay/index.html.erb @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 6dfde00..cdd5060 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -33,6 +33,9 @@ Railsgoat::Application.routes.draw do resources :messages do end + + resources :pay do + end end