aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Donnet2015-02-20 10:26:18 +0100
committerLuc Donnet2015-02-20 10:26:18 +0100
commit8259b2f1a4926aed231ba00cce7f036f4da3d8f9 (patch)
treef81780f0569b6a58e05890bed5c2bff164152941
parent29392c158b887733754d0b4e8dc3bad7ba8bcefe (diff)
downloadchouette-core-8259b2f1a4926aed231ba00cce7f036f4da3d8f9.tar.bz2
Fix routes stop points list size
-rw-r--r--app/controllers/routes_controller.rb1
-rw-r--r--app/views/routes/show.html.erb2
2 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/routes_controller.rb b/app/controllers/routes_controller.rb
index 6454ce068..55c59c435 100644
--- a/app/controllers/routes_controller.rb
+++ b/app/controllers/routes_controller.rb
@@ -32,7 +32,6 @@ class RoutesController < ChouetteController
def show
@map = RouteMap.new(route).with_helpers(self)
- @stop_points = route.stop_points.paginate(:page => params[:page])
show! do
build_breadcrumb :show
end
diff --git a/app/views/routes/show.html.erb b/app/views/routes/show.html.erb
index e1f59cde9..d8c8e2498 100644
--- a/app/views/routes/show.html.erb
+++ b/app/views/routes/show.html.erb
@@ -62,7 +62,7 @@
<div id="stop_points" class="panel-collapse collapse">
<div class="panel-body">
<div class="stop_points paginated_content">
- <%= paginated_content( @stop_points, "stop_points/stop_point") %>
+ <%= paginated_content( @route.stop_points, "stop_points/stop_point") %>
</div>
</div>
</div>