gem install passenger
passenger-install-apache2-module
And dont forget to adjust your apache config with the new settings. These are generated by the installer so you can just copy them.
gem install passenger
passenger-install-apache2-module
request.env['HTTP_X_FORWARDED_FOR']
request.env['REMOTE_ADDR']
which has just the same info, the calling IP.
def self.storage_name(repository)
"your_legacy_table_name"
end
storage_names[:default]='your_legacy_table_name'
def disable_geocoding
GeoKit::Geocoders::Geocoder.instance_eval do
def geocode(a)
res = GeoKit::GeoLoc.new
res.lat = 13.423007
res.lng = 52.534194
res.success = true
res
end
end
end
(4.85*100).to_i
in irb and you will get: 484
"%.32f" % 4.85
and you see the real value of this float. The reason is that to_i does just a truncate. (4.85*100).round
.