tyrauber / census_api

A Ruby Gem for querying the US Census Bureau API
MIT License
30 stars 9 forks source link

uninitialized constant, 'CensusApi' after requiring 'census_api' #12

Closed ddd1600 closed 10 years ago

ddd1600 commented 10 years ago

here's what I did:

irb

require 'census_api'

=> true

CensusApi

=> "NameError: uninitialized constant CensusApi"

tyrauber commented 10 years ago

@ddd1600 In IRB, I think you need to require rubygems first, before requiring the gem.

$ irb 

> require 'rubygems'
=> false 
> require 'census_api'
=> true 
> CensusApi
=> CensusApi 

Let me know if that doesn't work for you.