aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/routes_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/routes_controller.rb')
-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