-
Notifications
You must be signed in to change notification settings - Fork 126
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
undefined local variable or method apitome `apitome' after upgrading to 0.2.0 #95
Comments
it's how engines are namespaced and routes get defined. |
what version of rails are you using? https://github.com/jejacks0n/apitome/blob/master/lib/apitome/engine.rb#L3 This line should make that work, so I'm a little confused. |
+1 |
1 similar comment
+1 |
What version of rails are people using that are experiencing this issue? cc @baffers, @brettfishman, @alimac Master has the |
I'm using 5.2.1 |
My sincere apologies for not posting earlier... I'm using rails 5.2.1 and ruby 2.5.1. |
Same - 5.2.x |
It looks like that's already fixed in master. I'd recommend pointing to If y'all report that it's working as expected in other ways I can cut a release. In general though this is really good advice and is helpful for open source devs -- check master, and then try using it if it looks fixed. Reporting that things are working in master is far more valuable than +1s IMO. |
@jejacks0n - just tested the fix by pointing to |
@jejacks0n I can confirm that master fixes the reported problem for me as well. Are there plans to cut a new release soon? |
@jejacks0n Would love to see an update pushed for this issue as I'm still referencing the commit hash. |
Hi folks!
Just upgraded
apitome
gem from version0.1.0
to0.2.0
, and getting the following error when visiting the API docs page:Error points to this line:
https://github.com/jejacks0n/apitome/blob/master/app/views/apitome/docs/_example.html.erb#L20
When I replaced
apitome.simulated_path(link)
withsimulated_path(link)
, the docs page loaded OK, and 'Simulated Response' link worked fine. I do not see theapitome
variable being used anywhere else in the templates.The text was updated successfully, but these errors were encountered: