]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/trace.rb
Make the gpx/id/data API call work, and make gpx/create a POST method
[rails.git] / app / models / trace.rb
index 155e495a34b485b9123323088e45f58c2bfb2094..3eefc185d400c265f1cce211cb4e9b593555d07a 100644 (file)
@@ -3,6 +3,7 @@ class Trace < ActiveRecord::Base
 
   validates_presence_of :user_id, :name, :timestamp
   validates_presence_of :description, :on => :create
+  validates_format_of :tagstring, :with => /^[^\/;.,?]*$/
 #  validates_numericality_of :latitude, :longitude
   validates_inclusion_of :public, :inserted, :in => [ true, false]