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
Rails 2.3.6 rails-footnotes links are falsely HTML-safe escaped #19
Comments
It looks like the backtrace is now HTML escaped in Is there an easy way to override |
Adjustment to my original post: |
Same Problem in 2.3.8 |
I confirm Svelix's finding. |
Yep. Same here |
I've got the same issue. Here's the temporary solution I've end up with: http://pastie.org/1006791 |
Thanks it works great for me, i've just completed the
|
This fix isn't working for me, it's like the template_path_for_local_rescue is never being called in my application_controller. Is it possible that the rails_footnotes rescue override is loading in on top of the one in my application controller? I am using gem bundler to manage loading gems in the rails app, perhaps that's the difference. |
Yes not working for me either - I'm using rails 2.3.8 This is the sort of output I get: Application Trace | Framework Trace | Full Trace /Users/Steve/work/swom/app/views/admin/people/_new_members.html.haml:8:in |
OK I fixed it by overriding the 'template_error' type in rescues as well. It all works now |
Wakiki, can you post your fix here ? |
nowhereman: try to replace following line from my temporary fix posted above:
replace with this:
Should work. ... and don't forget to copy/create/modify "template_error" template as well. |
I've also copied "_request_and_response" template and I replaced And finally I replaced |
alfuken: where would the original template_error template be located? I used your pastie to do the other template, so I don't know where the source came from. |
E.g. for Rails 2.3.8 on Ubuntu : |
I accomplished this in a simpler way. This solution works for all template types as well. https://gist.github.com/741931 --Ian |
Pretty much as title. In the simplest app where the version number in environment.rb is 2.3.6 will turn the links that appear in any error page into "<a href.... "
Changing it to 2.3.5 and it will be fine again.
The text was updated successfully, but these errors were encountered: