Displaying 5 results from an estimated 5 matches for "full_address".
Did you mean:
fault_address
2007 Nov 07
5
Unexplainable failure...at least for me
I have an address model with country_id and province_id fields
There is also a full_address method that returns an address that is in a
format that the google maps api will be able to return a long-lat
coords.
Within the full_address method there is a call to obtain the
province/state and country name.
---------
def full_address
...
full_address = [city, self.province.name,
self.coun...
2010 Apr 09
1
Dovecot 1.2.11, Quota and SQL
...user: vmail
group: vmail
plugin:
quota: maildir:User quota
quota_rule: *:storage=500M
quota_rule2: Trash:storage=10M
My dovecote-sql.conf :
driver = mysql
connect = host=localhost dbname=mail user=mail password=MyPassWord
default_pass_scheme = CRYPT
password_query = SELECT full_address AS user, password FROM
admin_mailbox WHERE full_address = '%u'
user_query = SELECT path AS home, uid, gid, concat('*:storage=', quota,
'M') AS quota_rule FROM admin_mailbox WHERE full_address = '%u'
When I request my DB, it's OK :
mysql> SELECT path AS ho...
2010 Nov 09
3
help getting started with javascript generated forms
How does one generate a form within a view using javascript?
Specifically, assume views/premise/new.html.erb looks like this:
<%= form_for(Premise.new) do |f| %>
<%= f.hidden_field :full_address, :value => $FULL_ADDRESS %>
<%= f.hidden_field :geocoding, :value => $GEOCODING %>
<%= f.submit :value => "use this address" %>
<%= f.label :formatted_address, $FULL_ADDRESS %>
<% end %>
... but with the twist that this form must be generated on...
2006 Jul 18
1
Need Help Updating Records
...no_zips = Source.find(:all, :conditions => [ "zipcode = ?", (nil ||
'''') ])
@starting_no_zips = no_zips.length
server = XMLRPC::Client.new2("http://geocoder.us/service/xmlrpc")
no_zips.each do |r|
result = server.call("geocode", r.full_address)
#update the record in the Source table if a zip code is found
unless (result.empty? || result[0]["zip"] == ('''' || nil))
r.zipcode = result[0]["zip"]
end
end
end_no_zips = Source.find(:all, :conditions => ["zipcode = ?"...
2013 Apr 02
4
gmaps4rails: undefined method `model_name' for NilClass:Class
Hi All,
just in a spot of bother with this gem, I am trying to create a new
location and get the above msg.
here is my controller:
class LocationsController < ApplicationController
# GET /locations
# GET /locations.json
def index
@locations = Location.all
@json = Location.all.to_gmaps4rails
end
respond_to do |format|
format.html # index.html.erb