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 7892781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:57:13+00:00 2026-06-03T06:57:13+00:00

I have hit an interested Problem. I am using ruby 1.9.3 and rails 3.2.3

  • 0

I have hit an interested Problem. I am using ruby 1.9.3 and rails 3.2.3

I am wanting to integrate the geocoder gem with devise. I have added three additional attr_accessible into my user model created by devise which are “address, latitude and longitude”. I have created a migration to add these tables to the database (I am using sqlite3).

I have added an address field in the devise sign up view for when people sign up and placed the following at the end of my user model

geocoded_by :address
after_validation :geocode 

Now when a user signs up and enters their email address, password and ADDRESS.. Geocoder successfully places the correct latitude value into the database however leaves the longitude blank?? Has anyone had this issue?? I think it’s quite an interesting task to successfully track each user upon sign up. However I need both latitude and longitude addresses!

Any suggestions please fire away! 🙂

  • 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-06-03T06:57:14+00:00Added an answer on June 3, 2026 at 6:57 am

    I fixed this issue by creating a new rails application and then install devise and geocoder at the same time. I migrated additional attributes to the devise and added these in the user model, and all seemed to work fine.

    If any people encounter any issues then get in touch!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have hit a real problem. I need to do some Kmeans clustering for
I'm onto problem 245 now but have hit some problems. I've done some work
I'm new to python and have hit a problem with an SQL query I'm
I'm just playing around with FastMember and have hit a problem. Each time I
I have hit upon this problem about whether to use bignums in my language
I have hit a classic problem of needing to do a string replace on
I seem to have hit a snag while building my project using Ant. The
I have built a calculator using FancyBox cash flow forecast (hit view forecast). Now
I've seem to have hit a bug or i have overlooked something. I written
I'm trying to do a cross domain POST request and have hit a wall

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.