orderslink

This commit is contained in:
MatsMyncke 2014-11-06 18:31:47 +01:00
parent 806dc1d8f7
commit ec6ca60887
4 changed files with 12 additions and 4 deletions

View file

@ -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 %>

View file

@ -1 +1 @@
<h1> order pager </h1>
<h1> order page </h1>

View file

@ -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>

View file

@ -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'