Closed thiagofm closed 13 years ago
On gmaps4rails docs we have:
def gmaps4rails_address self.address #describe how to retrieve the address from your model end
How do I set a custom composed address there? I've tried:
def gmaps4rails_address self.address = (address + ', ' + city + ', ' + state + ', ' + zip) end
And it didn't work, I have the city state zip and address field in my table.
Why doesn't it work?
Could you please ask your question on stsckoverflow? Thanks.
http://stackoverflow.com/questions/5765769/composed-address-in-gmaps4rails
Thank you, the plugin is awesome!
Just answered, glad my work helps ;)
On gmaps4rails docs we have:
How do I set a custom composed address there? I've tried:
And it didn't work, I have the city state zip and address field in my table.
Why doesn't it work?