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
After updating to gon 3.0.2 rails helper method not working #42
Comments
Hello, can you provide a little bit more information about your environment, because on new rails app with gon 3.0.2 and rabl and jbuilder I have normal assets path through helpers:
gem 'rails', '3.2.3'
gem 'rabl'
gem 'jbuilder'
gem 'gon', '3.0.2'
<h1>Hello</h1>
<%= path_to_image('rails.png') %> result - http://cl.ly/0N422w0R1m3w0v2N231d |
Thanks for responding so quickly... I'd be happy to do a bit more testing. I'm actually headed out of town in a few hours so I'll work on this the next time I get the chance. |
any updates? |
Same issue with gon-5.0.4 and rails-4.0.5. |
rails 4.2.4, gon 6.0.1 - same issue I found that when gon calls for But when I pointed it to right method, it just not calculates |
I think that if you use sprockets, References |
As I sad when it calls Sprockets it didn't calculate |
The rails helper methods: path_to_image and image_path (same thing, 1 is an alias) now return
/images/YOURIMAGE.PNG
instead of/assets/YOURIMAGE.PNG
which is what it's supposed to return.If I revert to an older version of gon -- say 2.3.0 the helper methods work as intended.
The text was updated successfully, but these errors were encountered: