added the basic components to begin working on the pay index view
This commit is contained in:
@@ -1,2 +1,7 @@
|
||||
class PayController < ApplicationController
|
||||
|
||||
def index
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<% end %>
|
||||
</li>
|
||||
<li id="pay">
|
||||
<%= link_to "#" do %>
|
||||
<%= link_to user_pay_index_path(:user_id => current_user.user_id) do %>
|
||||
<div class="icon">
|
||||
<span class="fs1" aria-hidden="true" data-icon=""></span>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
function makeActive(){
|
||||
$('li[id="pay"]').addClass('active');
|
||||
};
|
||||
|
||||
$(document).ready(makeActive)
|
||||
|
||||
</script>
|
||||
@@ -33,6 +33,9 @@ Railsgoat::Application.routes.draw do
|
||||
|
||||
resources :messages do
|
||||
end
|
||||
|
||||
resources :pay do
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user