Displaying 1 result from an estimated 1 matches for "gridreference".
2009 Feb 03
3
ROXML from_xml not returning an object instance...
...: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 :gridReference
xml_reader :ascent
xml_reader :descent
xml_reader :distance
xml_reader :bearing
xml_reader :timemins
end
NB I''ve not specified types at the moment for the above elements. I''m
just trying to verify that the XML is being parsed by ROXML''s from_xml
method.
Error...