Displaying 1 result from an estimated 1 matches for "lonlatx".
Did you mean:
lonlat
2009 Feb 03
3
ROXML from_xml not returning an object instance...
...format.xml { render :xml => @route.errors, :status
=> :unprocessable_entity }
end
end
end
Route.rb:
class Route < ActiveRecord::Base
include ROXML
has_many :waypoints
xml_reader :title
xml_reader :totalDist
xml_reader :totalMis
xml_reader :totalHg
xml_reader :lonlatx
xml_reader :lonlaty
xml_reader :grcenter
xml_accessor :waypoints, [Waypoint], :in => "waypoints"
end
Waypoint.rb:
class Waypoint < ActiveRecord::Base
include ROXML
belongs_to :route
xml_reader :isLeg
xml_reader :lonlatx
xml_reader :lonlaty
xml_reader :gridRefe...