aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorMichel Etienne2015-09-24 14:56:42 +0200
committerMichel Etienne2015-09-24 14:56:42 +0200
commitd0ae24fa9d0082a322ed7457090e4dfecf89042f (patch)
tree8d101e5017aeac41e95bb81bd5460f77e9419d11 /app/controllers
parentdf9469f96e7ac102e27e682581f3f7b604934578 (diff)
downloadchouette-core-d0ae24fa9d0082a322ed7457090e4dfecf89042f.tar.bz2
adapt to Neptune specifications V4
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/access_links_controller.rb11
-rw-r--r--app/controllers/lines_controller.rb2
-rw-r--r--app/controllers/networks_controller.rb2
3 files changed, 12 insertions, 3 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
diff --git a/app/controllers/lines_controller.rb b/app/controllers/lines_controller.rb
index 6533278d2..514c82401 100644
--- a/app/controllers/lines_controller.rb
+++ b/app/controllers/lines_controller.rb
@@ -83,7 +83,7 @@ class LinesController < ChouetteController
private
def line_params
- params.require(:line).permit( :transport_mode, :network_id, :company_id, :objectid, :object_version, :creation_time, :creator_id, :name, :number, :published_name, :transport_mode_name, :registration_number, :comment, :mobility_restricted_suitability, :int_user_needs, :flexible_service, :group_of_lines, :group_of_line_ids, :group_of_line_tokens, :url, :color, :text_color, { footnotes_attributes: [ :code, :label, :_destroy, :id ] } )
+ params.require(:line).permit( :transport_mode, :network_id, :company_id, :objectid, :object_version, :creation_time, :creator_id, :name, :number, :published_name, :transport_mode_name, :registration_number, :comment, :mobility_restricted_suitability, :int_user_needs, :flexible_service, :group_of_lines, :group_of_line_ids, :group_of_line_tokens, :url, :color, :text_color, :stable_id, { footnotes_attributes: [ :code, :label, :_destroy, :id ] } )
end
end
diff --git a/app/controllers/networks_controller.rb b/app/controllers/networks_controller.rb
index 5dff116c2..239f022b3 100644
--- a/app/controllers/networks_controller.rb
+++ b/app/controllers/networks_controller.rb
@@ -42,7 +42,7 @@ class NetworksController < ChouetteController
end
def network_params
- params.require(:network).permit(:objectid, :object_version, :creation_time, :creator_id, :version_date, :description, :name, :registration_number, :source_name, :source_type, :source_identifier, :comment )
+ params.require(:network).permit(:objectid, :object_version, :creation_time, :creator_id, :version_date, :description, :name, :registration_number, :source_name, :source_type_name, :source_identifier, :comment )
end
end