Make the gpx/id/data API call work, and make gpx/create a POST method

so arguments can be handled more robustly.
This commit is contained in:
Tom Hughes 2007-08-16 23:04:18 +00:00
parent 6ba4e831a7
commit 44051f30d8
3 changed files with 46 additions and 41 deletions

View 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]