aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorMarc Florisson2012-05-04 14:07:12 +0200
committerMarc Florisson2012-05-04 14:07:12 +0200
commit09c55792e887dea709df29cae2e4fb8fbd86901c (patch)
tree5ef824a3144995bd1ab552eea4c852b23f99c35f /app/controllers
parentac3a3153fa18da97cc120703f9a62061a211b581 (diff)
downloadchouette-core-09c55792e887dea709df29cae2e4fb8fbd86901c.tar.bz2
add map on route view
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/routes_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/routes_controller.rb b/app/controllers/routes_controller.rb
index 55a700315..2ed39b0ac 100644
--- a/app/controllers/routes_controller.rb
+++ b/app/controllers/routes_controller.rb
@@ -2,6 +2,7 @@ class RoutesController < ChouetteController
defaults :resource_class => Chouette::Route
respond_to :html, :xml, :json
+ respond_to :kml, :only => :show
belongs_to :referential do
belongs_to :line, :parent_class => Chouette::Line, :optional => true, :polymorphic => true
@@ -14,6 +15,7 @@ class RoutesController < ChouetteController
end
def show
+ @map = RouteMap.new referential, resource
@stop_areas = resource.stop_areas.paginate(:page => params[:page], :per_page => 10)
show!
end