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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:25:31+00:00 2026-06-04T07:25:31+00:00

I have installed http://www.rubygeocoder.com/ in a project rails in a production server but this

  • 0

I have installed http://www.rubygeocoder.com/ in a project rails in a production server but this gem in my production server not works fine for me…

I’m using mongoid.

I write these methods in views in my development environment and works fine:

<%= request.ip %>   
<%= request.location.city %>    
<%= request.location.country %>

and I get: 127.0.0.1 Reserved

this result its usually because I am working in localhost.

However after make a deploy with capistrano in the production server in linode I get error with these methods, I can see in my production log the next error:

Completed 500 Internal Server Error in 909ms

ActionView::Template::Error (undefined method `location' for #<ActionDispatch::Request:0x00000005aa8570>):

Why I get this error in my production server for these methods?

Thank you!

  • 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-04T07:25:32+00:00Added an answer on June 4, 2026 at 7:25 am

    The problem was fixed. thank you to alexreisner on https://github.com/alexreisner/geocoder/issues/239.

    After you install this gem, you must restart your production server. if you want that geocoder does work fine.

    After restart my linode server this gem does work fine for me :D.

    Thank you very much!

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

Sidebar

Related Questions

I have this website: http://www.princeslick.com/?page_id=28 and I have installed the nextgen plugin on it,
I have installed Qt for windows CE using this link http://qt.nokia.com/products/platform/qt-for-windows-ce for visual studio8,
I have following this blog in setting Xvfb in my ubuntu environment: http://corpocrat.com/2008/08/19/how-to-install-xvfb-x11-server-in-linux-server/ So
I have installed http://www.mysql.com/downloads/connector/net/ So I am able to create a mysql connection. I
I have installed bootstrap to my Rails 3.2 app this way (through Gemfile): gem
I have installed teampulse http://www.telerik.com/team-productivity-tools.aspx community. I add in bindings my domain name with
I have strange problem. For a project we are using following cloud hosting. http://www.rackspace.com
I have installed PyQT from this URL: http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-Py2.6-gpl-4.7.7-1.exe I have Python 2.6 installed. My
I have installed Qtip and used it for tooltips on a map: http://www.gregquinn.com/oneworld/about_people6.html You
i have installed the fbconnect module under drupal 6. i have added <html xmlns:fb=http://www.facebook.com/2008/fbml

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.