Displaying 1 result from an estimated 1 matches for "xml_reader".
2009 Feb 03
3
ROXML from_xml not returning an object instance...
...}
format.js
else
format.html { render :action => "new" }
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...