aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpl2017-05-31 11:19:47 +0200
committerjpl2017-05-31 11:19:47 +0200
commitfaaf85d83ec4e16db8e89218ad4f1503b2dbf240 (patch)
treedf3adbfdefcaa147ff317bc2511e20b7b2f8e34f
parentea9e64c38d7d7d7a9e6ee171447a736fa7bc5c0c (diff)
downloadchouette-core-faaf85d83ec4e16db8e89218ad4f1503b2dbf240.tar.bz2
Refs #3611: updating validations and requirements on routes#new
-rw-r--r--app/models/chouette/route.rb4
-rw-r--r--app/views/routes/new.html.slim2
2 files changed, 4 insertions, 2 deletions
diff --git a/app/models/chouette/route.rb b/app/models/chouette/route.rb
index 9f6344055..76905bf2b 100644
--- a/app/models/chouette/route.rb
+++ b/app/models/chouette/route.rb
@@ -63,8 +63,10 @@ class Chouette::Route < Chouette::TridentActiveRecord
end
accepts_nested_attributes_for :stop_points, :allow_destroy => :true
- # validates_presence_of :name
+ validates_presence_of :name
+ validates_presence_of :published_name
validates_presence_of :line
+
# validates_presence_of :direction
# validates_presence_of :wayback
diff --git a/app/views/routes/new.html.slim b/app/views/routes/new.html.slim
index 6ac95f023..102467677 100644
--- a/app/views/routes/new.html.slim
+++ b/app/views/routes/new.html.slim
@@ -1,7 +1,7 @@
/ PageHeader
= pageheader 'map-marker',
t('routes.new.title'),
- 'Lorem ipsum dolor sit amet'
+ ''
/ PageContent
.page_content