Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to retrieve data from the gem #12

Open
apcano1978 opened this issue Oct 17, 2019 · 3 comments
Open

Error trying to retrieve data from the gem #12

apcano1978 opened this issue Oct 17, 2019 · 3 comments

Comments

@apcano1978
Copy link

I am trying to retrieve provinces in my rails project, first I installed the gem, I saw no aditional configuration needed, and when I tried to retrieve data, for instance:

provinces = INE::Places::Province.all

I always get the following error:

Uninitialized constant INE

I don´t know if I am doing something wrong or the gem is not getting installed properly.

Regards

Antonio

@ferblape
Copy link
Member

@apcano1978 thanks for using our gem.

You should require it with require "ine/places" to get all the constants loaded properly. We'll update the documentation to avoid this confussion, thanks!

@apcano1978
Copy link
Author

apcano1978 commented Oct 17, 2019 via email

@ferblape
Copy link
Member

ferblape commented Oct 17, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants