iRessources / AgileDwarf

Agile plugin for Redmine
120 stars 83 forks source link

Undefined method `html_safe' in sprints and tasks tabs #13

Open ghost opened 12 years ago

ghost commented 12 years ago

Installed the plugin on Redmine v1.1.3, enabled it for a test project, all the needed tabs did appear, but I was getting "internal server error" trying to enter the sprints or tasks tabs (graphs was fine though). Logs say there is "undefined method `html_safe' ". Any idea how to circumvent that?

markablov commented 12 years ago

Rails version?

yuters commented 12 years ago

Oups, my fault. See issue #3

Starting from Rails 3, ActiveSupport::JSON::Encoding.escape_html_entities_in_json is set to false by default. Older versions would work without html_safe but I didn't think the method would be unavailable.

Here's a good article that may help solving this issue: http://jfire.io/blog/2012/04/30/how-to-securely-bootstrap-json-in-a-rails-view/