orderslink
This commit is contained in:
parent
806dc1d8f7
commit
ec6ca60887
|
@ -1,5 +1,5 @@
|
|||
<% @users.each do |user| %>
|
||||
<tr class="clickableRow" href="order.html">
|
||||
<tr class="clickableRow" href= "order" >
|
||||
<td><%= user.id %></td>
|
||||
<td><%= user.name %></td>
|
||||
<td><% user.marks.times do %>
|
||||
|
|
|
@ -1 +1 @@
|
|||
<h1> order pager </h1>
|
||||
<h1> order page </h1>
|
|
@ -15,4 +15,12 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($) {
|
||||
$(".clickableRow").click(function() {
|
||||
window.document.location = $(this).attr("href");
|
||||
});
|
||||
});
|
||||
</script>
|
|
@ -6,7 +6,7 @@ Rails.application.routes.draw do
|
|||
|
||||
get 'users/new'
|
||||
|
||||
get 'static_pages/order'
|
||||
get 'order' => 'static_pages#order'
|
||||
get 'help' => 'static_pages#help'
|
||||
get 'static_pages/home'
|
||||
get 'overview' => 'static_pages#overview'
|
||||
|
|
Loading…
Reference in a new issue