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:
parent
6ba4e831a7
commit
44051f30d8
3 changed files with 46 additions and 41 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue