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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:56:22+00:00 2026-06-13T12:56:22+00:00

I chose factual-api gem after looking at the factual website. May I know how

  • 0

I chose “factual-api” gem after looking at the factual website. May I know how do I set it up and use the function to get the locations of those areas? Can I write it in the controller/model?

After trying to install the gem, I get this when I look at my gemfile:

Gem "factual-api" is unavailable in SDK 'RVM: ruby-1.9.2-p290

This inspection warns about unavailable gems inside the current SDK. The IDE needs the gems to provide come completion, navigation and analysis. An appropriate quick-fix is available to install the required gems.

When I run the command bundle install, I do not have any errors. But when I called:

factual = Factual.new("YOUR_KEY", "YOUR_SECRET")

I get this:

NameError: uninitialized constant Factual

What am I doing wrong now? What should be the right way to do so?

  • 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-13T12:56:23+00:00Added an answer on June 13, 2026 at 12:56 pm

    This answer is a bit late, but I’m posting it anyway so it can be marked as answered.

    As mentioned in the comments the recommended approach is to use Factual’s Ruby Driver which can be found at http://github.com/Factual/factual-ruby-driver or installed with the following in your Gemfile:

    gem 'factual-api', :require => 'factual'

    If not using a Gemfile remember to manually require 'factual' somewhere. I also like to put an initializer in the config folder with the OAuth details if it’s a private repository that looks something like this:

    class Factual
      KEY = 'YOUR-OAUTH-KEY'
      SECRET = 'YOUR-OAUTH-SECRET'
    end
    

    This allows you to access the Factual API anywhere in your app with

    factual = Factual.new Factual::KEY, Factual::SECRET

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

Sidebar

Related Questions

Beginning to play around with the Twitter API and chose to use the Twitterizer
I'm looking to understand why Java designers chose to implement function declarations this way.
I set out writing a ZF (v1.10.3) application and chose to use Zend_Config_Ini to
I need to chose the right implement for calling a function foo than written
How to chose only one picture which can't repeat? I tried this: I use
I would like to know why designers of the URI standard chose to have
I chose this way to get linux distro name: ls /etc/*release And now I
The only reason I chose to use a BackgroundWorker for the application I am
kXML is an alternative XML parser I chose to use for JavaME apps. The
I'm looking for some guidance about how to chose an IoC container for an

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.