Sunday, November 20, 2011

Fixing Redmine user page-load-error on Debian 6

For those who are using redmine on debian-6.0, and using redmine might see problem using it, when we try to visit the user page.

Error look something like this.


ActionView::TemplateError (undefined method `html_safe' for "user@mycompany.com":String) on line #10 of app/views/users/show.rhtml:
Solution to this problem is to apply this patch.



redmine-server:/usr/share/redmine# diff /usr/lib/ruby/1.8/action_view/helpers/url_helper.rb /usr/lib/ruby/1.8/action_view/helpers/url_helper.rb.orig 476,477c476<           #html = content_tag("a", name || email_address_obfuscated.html_safe, html_options.merge({ "href" => "mailto:"+html_escape(email_address)+extras }))<                 html = content_tag("a", name || html_escape(email_address_obfuscated), html_options.merge({ "href" => "mailto:"+html_escape(email_address)+extras }))--->           html = content_tag("a", name || email_address_obfuscated.html_safe, html_options.merge({ "href" => "mailto:"+html_escape(email_address)+extras }))mdserver1:/usr/share/redmine# 

Related Posts:

  • Building Facebook's HipHop on Fedora 15 Facebook has opensourced their Hiphop code transformer. Simply put Hiphop transforms your code written in PHP Language into Machine Language. So this post is mainly for PHP Developers and Others who want to get their hands d… Read More
  • Node.js on Fedora 15Since currently there is no easy way to install node.js via yum repository. Here is how you can quickly get the node.js installed on your fedora-15 box1. Install fedora packager rpms (as root)[nareshv@localhost SRPMS]$ sudo y… Read More
  • Running Apache Traffic Server on Fedora 13Apache Traffic server from Yahoo! Inc. is really powerful, extensible web server which is proved to serve 75K reqs/sec on commodity hardware.In this post, you'll learn how to download and run the Traffic server on your deskt… Read More
  • 64-bit Flash Plugin on Fedora-13 running Firefox 4Firefox 4 is around the corner, those who are running Fedora-13 and want to try out the latest 64-bit flash plugin. These are the instructions1. Go to our mozilla plugins directory[nareshv@fallenangel plugins]$ cd ~/.mozilla/… Read More
  • Smashing Book 2I really love the new Smashing Book 2.I have placed the order, the moment they released it to everyone. Somehow for the first two times i never got the book. Third time i got the book and here is it.I really really thank the … Read More

0 comments:

Post a Comment