-
Notifications
You must be signed in to change notification settings - Fork 102
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
Helpers should return safe html #11
Comments
Implemented here: http://github.com/fnando/asset_packager/tree/rails3 |
Fix for this is here (link above not working). This will work for rails >= 2.3.6 as well as 3.0. http://github.com/lardawge/asset_packager/commit/eb633dea77fe8ddd19dfd1e43bf7afcc895abb63 |
This should be merged into master. |
Excellent work on this repo! Is it still actively maintained? The reason I ask is that I am running into the same Rails 3 issue, downloaded the latest repository and cannot find evidence of the html_safe fix. I intended on writing a test submitting a patch, but running "rake test:plugins PLUGIN=asset_manager" returned this error: ➜ rake test:plugins PLUGIN=asset_packager (See full trace by running task with --trace) |
Had same problem with the html_safe code not being included in the library I downloaded. Fixed it myself but makes me wonder what else is missing now. |
All HTML strings should be marked as safe on Rails 3; otherwise, the tags will be escaped.
You can do this by calling the "html_safe" method before returning the strings.
The text was updated successfully, but these errors were encountered: