Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5968001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:01:36+00:00 2026-05-22T20:01:36+00:00

I encountered the following error when I submit an empty address field. Gmaps4rails::GeocodeInvalidQuery in

  • 0

I encountered the following error when I submit an empty address field.

Gmaps4rails::GeocodeInvalidQuery in LocationsController#create
You must provide an address

My Model

class Location < ActiveRecord::Base
  validates :address, :presence => true

  acts_as_gmappable
  def gmaps4rails_address
    address
  end

  def gmaps4rails_infowindow
    "<h4>#{name}</h4>" << "<h4>#{address}</h4>"
  end
end

The question why it never validates the address field presence or not and directly throw error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:01:37+00:00Added an answer on May 22, 2026 at 8:01 pm

    Fixed in 0.8.7 it will now normally add error to the address field.

    Gmaps4rails already checks whether or not the address is empty or nil. It’s part of the options described here.

    You can, for instance, set your own validation message this way:

    acts_as_gmappable :msg => "Errrrrrrror"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've encountered the following error while trying to create a blogging application. Any ideas
I encountered the following ddl in a pl/sql script this morning: create index genuser.idx$$_0bdd0011
When starting the update, the following error is displayed: Network connection problems encountered during
I was trying to lock a Boolean variable when I encountered the following error
I've encountered the following bug: http://issues.apache.org/jira/browse/AXIS2-4363 It states the following: This error only occurs
Some of my visitors get error while loading page: The following error was encountered:
What does the following error: Warning: overflow encountered in exp in scipy/numpy using Python
I encountered a stored procedure that had the following error handling block immediately after
Good day! I encountered the following error upon running my JSP program. java.lang.IllegalStateException: PWC3991:
I tried to use pptp in Ubuntu 10.10 and encountered the following error (ip

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.