[Rails] Re: XML Builder

2012-10-25 Thread bwb
n Thursday, October 25, 2012 6:26:46 PM UTC-4, bwb wrote: > > my code looks like this: > xml.instruct! > xml.county(name: @jurisdiction.name, id: @jurisdiction.jurisdictionID) do > xml.officials do > @officials.each do |official| > xml.official do >

[Rails] XML Builder

2012-10-25 Thread bwb
my code looks like this: xml.instruct! xml.county(name: @jurisdiction.name, id: @jurisdiction.jurisdictionID) do xml.officials do @officials.each do |official| xml.official do xml.firstname official.firstname xml.lastname official.lastname xml.eotypeID eotypeID:

[Rails] foreign_key definition apparently not recognized

2012-03-23 Thread bwb
These models are defined with respect to a legacy database: class VeType < ActiveRecord::Base has_many :ve #plural defined as "ve" self.primary_key = "typeID" end class Ve < ActiveRecord::Base belongs_to :ve_type, :foreign_key => "TypeID"

[Rails] mysql compatibility error--already reported by another correspondent

2011-12-27 Thread BWB
C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86- mingw32/lib/mysql2/mysql2.rb:2:in `require': Incorrect MySQL client librar y version! This gem was compiled for 6.0.0 but the client library is 5.5.19. (RuntimeError) -- You received this message because you are subscribed to the Google Grou