Displaying 1 result from an estimated 1 matches for "abcrealty".
2006 Jul 08
1
Need Help Understanding Situation with Table Columns
...9;For storing certain geolocations'' AUTO_INCREMENT=6 ;
In the Gmap model I have the following code:
class Gmap < ActiveRecord::Base
require ''pp''
validates_presence_of(:type)
validates_inclusion_of(:type,
:in => 0..4,
:message => "should be a valid abcRealty Map type")
def self.allMapPoints
# Gmap.find(:all,
# :order => "description asc")
results = find_by_sql("select id, description from gmaps WHERE 1")
pp results[0]
pp(Gmap.columns_hash[''type''])
results
end
Note that I cannot get the ''f...