aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/access_links_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/access_links_controller.rb')
-rw-r--r--app/controllers/access_links_controller.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/controllers/access_links_controller.rb b/app/controllers/access_links_controller.rb
index 8a01453eb..d590aba00 100644
--- a/app/controllers/access_links_controller.rb
+++ b/app/controllers/access_links_controller.rb
@@ -17,7 +17,7 @@ class AccessLinksController < ChouetteController
def show
@map = AccessLinkMap.new(resource).with_helpers(self)
@access_point = Chouette::AccessPoint.find(params[:access_point_id])
- @access_link = Chouette::AccessLink.find(params[:id])
+ #@access_link = Chouette::AccessLink.find(params[:id])
@stop_area = @access_link.stop_area
show! do |format|
format.html {build_breadcrumb :show}
@@ -62,6 +62,15 @@ class AccessLinksController < ChouetteController
end
end
+ def update
+ @access_point = Chouette::AccessPoint.find(params[:access_point_id])
+ @access_link = Chouette::AccessLink.find(params[:id])
+ @stop_area = @access_link.stop_area
+ @orientation = @access_link.link_orientation_type
+ update! do |success, failure|
+ build_breadcrumb :edit
+ end
+ end
protected