-
Notifications
You must be signed in to change notification settings - Fork 72
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
NoMethodError - undefined method inline_svg
#85
Comments
@JonaMX thanks for opening this issue. Sorry you're having trouble with inline_svg. I tried to reproduce the error using my inline_svg Test Rails App, which I upgraded to use inline_svg v1.3.1 and Rails 4.2.10 but everything seems to be working fine: SVGs are embedded into the view templates. Do you have any custom configuration for the gem ( Could you also paste the code for your view template, where you call the |
Hey @jamesmartin thanks for your quick response. I just realized that the issue is within the templates/views that I'm serving with angular-rails-templates. It seems that the Helpers are not being loaded. Answering your questions, no I don't have any custom configuration, the only thing that I've added regarding InlineSvg is this configuration for the assets
and this is how I'm using the
|
I'm closing this issue since this has to do with angular-rails-templates. Turns out that the issue indeed was on tilt, it wasn't loading the helpers, so this is the code that I used as a workaround
Thanks anyway @jamesmartin |
@JonaMX thanks for following up with a detailed description of the root cause and providing your workaround to help others that stumble on the same problem. 👍 ⚡️ |
I have been using the helper
inline_svg
on myerb
views with no issues, I was using the version0.6.1
, I tried to upgrade the gem to the latest version which is1.3.1
and now I'm having this issue.I'm using Rails
4.2.10
The text was updated successfully, but these errors were encountered: