https://www.redmine.org/
https://www.redmine.org/favicon.ico?1679302129
2011-05-31T12:50:46Z
Redmine
Redmine - Defect #8477: Undefined method `html_safe!'
https://www.redmine.org/issues/8477?journal_id=29401
2011-05-31T12:50:46Z
Petr Pospisil
<ul></ul><p>Are you sure you are still compatible with Ruby 1.8.7?</p>
Redmine - Defect #8477: Undefined method `html_safe!'
https://www.redmine.org/issues/8477?journal_id=29402
2011-05-31T12:54:17Z
Petr Pospisil
<ul></ul><p>??</p>
<p><a class="external" href="http://grosser.it/2011/05/04/updating-to-rails-2-3-11-without-using-html_safe/">http://grosser.it/2011/05/04/updating-to-rails-2-3-11-without-using-html_safe/</a></p>
Redmine - Defect #8477: Undefined method `html_safe!'
https://www.redmine.org/issues/8477?journal_id=29403
2011-05-31T12:59:12Z
Etienne Massip
<ul></ul><p>Petr Pospisil wrote:</p>
<blockquote>
<p>Are you sure you are still compatible with Ruby 1.8.7?</p>
</blockquote>
<p>Yes, I've been running trunk/1.2.0 with 1.8.7 (patch lvl 330) for a long time now without any error like this one.</p>
<p>Please give details according to <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/SubmittingBugs">SubmittingBugs</a>.</p>
Redmine - Defect #8477: Undefined method `html_safe!'
https://www.redmine.org/issues/8477?journal_id=29646
2011-06-07T10:55:21Z
Demid Lupin
<ul></ul><p>In fresh install of redmine try to create user than go to <a class="external" href="http://localhost/redmine/users/USER_ID">http://localhost/redmine/users/USER_ID</a> 3 for example and than 500 error</p>
<p>About your application's environment<br />Ruby version 1.8.7 (i486-linux)<br />RubyGems version 1.3.7<br />Rack version 1.1<br />Rails version 2.3.5<br />Active Record version 2.3.5<br />Active Resource version 2.3.5<br />Action Mailer version 2.3.5<br />Active Support version 2.3.5<br />Edge Rails revision unknown<br />Application root /usr/share/redmine<br />Environment production<br />Database adapter mysql<br />Database schema version 20100819172912</p>
<p>$ mysql --version<br />mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (i486) using readline 6.1</p>
<p>$ dpkg -s redmine<br />Package: redmine<br />Status: install ok installed<br />Architecture: all<br />Version: 1.0.1-1</p>
<p>ActionView::TemplateError (undefined method `html_safe' for "<a class="email" href="mailto:vishnya@stc-spb.ru">vishnya@stc-spb.ru</a>":String) on line <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: not work administration-menu with prefix-url (Closed)" href="https://www.redmine.org/issues/10">#10</a> of app/views/users/show.rhtml:<br />7: <div class="splitcontentleft"><br />8: <ul><br />9: <% unless @user.pref.hide_mail <span>><br />10: <li><</span>=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') <span>></li><br />11: <</span> end <span>><br />12: <</span> for custom_value in @custom_values <span>><br />13: <</span> if !custom_value.value.blank? %></p>
<pre><code>/usr/lib/ruby/1.8/action_view/helpers/url_helper.rb:476:in `mail_to'<br /> app/views/users/show.rhtml:10:in `_run_rhtml_app47views47users47show46rhtml'<br /> /usr/lib/ruby/1.8/action_view/renderable.rb:34:in `send'<br /> /usr/lib/ruby/1.8/action_view/renderable.rb:34:in `render'<br /> /usr/lib/ruby/1.8/action_view/base.rb:306:in `with_template'<br /> /usr/lib/ruby/1.8/action_view/renderable.rb:30:in `render'<br /> /usr/lib/ruby/1.8/action_view/template.rb:205:in `render_template'<br /> /usr/lib/ruby/1.8/action_view/base.rb:265:in `render'<br /> /usr/lib/ruby/1.8/action_view/base.rb:348:in `_render_with_layout'<br /> /usr/lib/ruby/1.8/action_view/base.rb:262:in `render'<br /> /usr/lib/ruby/1.8/action_controller/base.rb:1250:in `render_for_file'<br /> /usr/lib/ruby/1.8/action_controller/base.rb:987:in `render_without_benchmark'<br /> /usr/lib/ruby/1.8/action_controller/benchmarking.rb:51:in `render'<br /> /usr/lib/ruby/1.8/action_controller/benchmarking.rb:51:in `render'<br /> app/controllers/users_controller.rb:68:in `show'<br /> /usr/lib/ruby/1.8/action_controller/base.rb:1331:in `send'<br /> /usr/lib/ruby/1.8/action_controller/base.rb:1331:in `perform_action_without_filters'<br /> /usr/lib/ruby/1.8/action_controller/filters.rb:617:in `call_filters'<br /> /usr/lib/ruby/1.8/action_controller/filters.rb:610:in `perform_action_without_benchmark'<br /> /usr/lib/ruby/1.8/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'<br /> /usr/lib/ruby/1.8/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'<br /> /usr/lib/ruby/1.8/action_controller/rescue.rb:160:in `perform_action_without_flash'<br /> /usr/lib/ruby/1.8/action_controller/flash.rb:146:in `perform_action'<br /> /usr/lib/ruby/1.8/action_controller/base.rb:532:in `send'<br /> /usr/lib/ruby/1.8/action_controller/base.rb:532:in `process_without_filters'<br /> /usr/lib/ruby/1.8/action_controller/filters.rb:606:in `process'<br /> /usr/lib/ruby/1.8/action_controller/base.rb:391:in `process'<br /> /usr/lib/ruby/1.8/action_controller/base.rb:386:in `call'<br /> /usr/lib/ruby/1.8/action_controller/routing/route_set.rb:437:in `call'<br /> /usr/lib/ruby/1.8/action_controller/dispatcher.rb:87:in `dispatch'<br /> /usr/lib/ruby/1.8/action_controller/dispatcher.rb:121:in `_call'<br /> /usr/lib/ruby/1.8/action_controller/dispatcher.rb:130:in `build_middleware_stack'<br /> /usr/lib/ruby/1.8/active_record/query_cache.rb:29:in `call'<br /> /usr/lib/ruby/1.8/active_record/query_cache.rb:29:in `call'<br /> /usr/lib/ruby/1.8/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'<br /> /usr/lib/ruby/1.8/active_record/query_cache.rb:9:in `cache'<br /> /usr/lib/ruby/1.8/active_record/query_cache.rb:28:in `call'<br /> /usr/lib/ruby/1.8/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'<br /> /usr/lib/ruby/1.8/action_controller/string_coercion.rb:25:in `call'<br /> /usr/lib/ruby/1.8/rack/head.rb:9:in `call'<br /> /usr/lib/ruby/1.8/rack/methodoverride.rb:24:in `call'<br /> /usr/lib/ruby/1.8/action_controller/params_parser.rb:15:in `call'<br /> /usr/lib/ruby/1.8/action_controller/session/cookie_store.rb:93:in `call'<br /> /usr/lib/ruby/1.8/action_controller/failsafe.rb:26:in `call'<br /> /usr/lib/ruby/1.8/rack/lock.rb:11:in `call'<br /> /usr/lib/ruby/1.8/rack/lock.rb:11:in `synchronize'<br /> /usr/lib/ruby/1.8/rack/lock.rb:11:in `call'<br /> /usr/lib/ruby/1.8/action_controller/dispatcher.rb:106:in `call'<br /> /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request'<br /> /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'<br /> /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'<br /> /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'<br /> /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'<br /> /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'<br /> /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'<br /> /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'<br /> /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'<br /> /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'<br /> /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start'<br /> /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'<br /> /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'<br /> /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'<br /> /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'<br /> /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'<br /> /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'<br /> /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'<br /> /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'<br /> /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'<br /> /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'<br /> /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'<br /> /usr/lib/phusion_passenger/passenger-spawn-server:61</code></pre>
Redmine - Defect #8477: Undefined method `html_safe!'
https://www.redmine.org/issues/8477?journal_id=29647
2011-06-07T11:02:50Z
Demid Lupin
<ul></ul><p>I don't found ability to edit own comments so please remove previous</p>
<p>In fresh install of redmine try to create user than go to <a class="external" href="http://localhost/redmine/users/USER_ID">http://localhost/redmine/users/USER_ID</a> 3 for example and than 500 error</p>
<p>Rails env<br /><pre>
About your application's environment
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.7
Rack version 1.1
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Application root /usr/share/redmine
Environment production
Database adapter mysql
Database schema version 20100819172912
</pre></p>
<p>Mysql<br /><pre>
$ mysql --version
mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (i486) using readline 6.1
</pre></p>
<p>Redmine<br /><pre>
$ dpkg -s redmine
Package: redmine
Status: install ok installed
Architecture: all
Version: 1.0.1-1
</pre><br />StackTrace<br /><pre>
ActionView::TemplateError (undefined method `html_safe' for "mail@mail.ru":String) on line #10 of app/views/users/show.rhtml:
7: <div class="splitcontentleft">
8: <ul>
9: <% unless @user.pref.hide_mail >
10: <li><=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') ></li>
11: < end >
12: < for custom_value in @custom_values >
13: < if !custom_value.value.blank? %>
/usr/lib/ruby/1.8/action_view/helpers/url_helper.rb:476:in `mail_to'
app/views/users/show.rhtml:10:in `_run_rhtml_app47views47users47show46rhtml'
/usr/lib/ruby/1.8/action_view/renderable.rb:34:in `send'
/usr/lib/ruby/1.8/action_view/renderable.rb:34:in `render'
/usr/lib/ruby/1.8/action_view/base.rb:306:in `with_template'
/usr/lib/ruby/1.8/action_view/renderable.rb:30:in `render'
/usr/lib/ruby/1.8/action_view/template.rb:205:in `render_template'
/usr/lib/ruby/1.8/action_view/base.rb:265:in `render'
/usr/lib/ruby/1.8/action_view/base.rb:348:in `_render_with_layout'
/usr/lib/ruby/1.8/action_view/base.rb:262:in `render'
/usr/lib/ruby/1.8/action_controller/base.rb:1250:in `render_for_file'
/usr/lib/ruby/1.8/action_controller/base.rb:987:in `render_without_benchmark'
/usr/lib/ruby/1.8/action_controller/benchmarking.rb:51:in `render'
/usr/lib/ruby/1.8/action_controller/benchmarking.rb:51:in `render'
app/controllers/users_controller.rb:68:in `show'
/usr/lib/ruby/1.8/action_controller/base.rb:1331:in `send'
/usr/lib/ruby/1.8/action_controller/base.rb:1331:in `perform_action_without_filters'
/usr/lib/ruby/1.8/action_controller/filters.rb:617:in `call_filters'
/usr/lib/ruby/1.8/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/usr/lib/ruby/1.8/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/action_controller/rescue.rb:160:in `perform_action_without_flash'
/usr/lib/ruby/1.8/action_controller/flash.rb:146:in `perform_action'
/usr/lib/ruby/1.8/action_controller/base.rb:532:in `send'
/usr/lib/ruby/1.8/action_controller/base.rb:532:in `process_without_filters'
/usr/lib/ruby/1.8/action_controller/filters.rb:606:in `process'
/usr/lib/ruby/1.8/action_controller/base.rb:391:in `process'
/usr/lib/ruby/1.8/action_controller/base.rb:386:in `call'
/usr/lib/ruby/1.8/action_controller/routing/route_set.rb:437:in `call'
/usr/lib/ruby/1.8/action_controller/dispatcher.rb:87:in `dispatch'
/usr/lib/ruby/1.8/action_controller/dispatcher.rb:121:in `_call'
/usr/lib/ruby/1.8/action_controller/dispatcher.rb:130:in `build_middleware_stack'
/usr/lib/ruby/1.8/active_record/query_cache.rb:29:in `call'
/usr/lib/ruby/1.8/active_record/query_cache.rb:29:in `call'
/usr/lib/ruby/1.8/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/usr/lib/ruby/1.8/active_record/query_cache.rb:9:in `cache'
/usr/lib/ruby/1.8/active_record/query_cache.rb:28:in `call'
/usr/lib/ruby/1.8/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/usr/lib/ruby/1.8/action_controller/string_coercion.rb:25:in `call'
/usr/lib/ruby/1.8/rack/head.rb:9:in `call'
/usr/lib/ruby/1.8/rack/methodoverride.rb:24:in `call'
/usr/lib/ruby/1.8/action_controller/params_parser.rb:15:in `call'
/usr/lib/ruby/1.8/action_controller/session/cookie_store.rb:93:in `call'
/usr/lib/ruby/1.8/action_controller/failsafe.rb:26:in `call'
/usr/lib/ruby/1.8/rack/lock.rb:11:in `call'
/usr/lib/ruby/1.8/rack/lock.rb:11:in `synchronize'
/usr/lib/ruby/1.8/rack/lock.rb:11:in `call'
/usr/lib/ruby/1.8/action_controller/dispatcher.rb:106:in `call'
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:92:in `process_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:213:in `start'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/phusion_passenger/passenger-spawn-server:61
</pre></p>
Redmine - Defect #8477: Undefined method `html_safe!'
https://www.redmine.org/issues/8477?journal_id=29708
2011-06-09T08:59:26Z
Petr Pospisil
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>From my side it is resolved by rewrite "html_safe!" to "html_safe". I had it in some plugins that are incompatible with new rails.</p>
Redmine - Defect #8477: Undefined method `html_safe!'
https://www.redmine.org/issues/8477?journal_id=29715
2011-06-09T12:36:30Z
Dan Scharon
<ul></ul><p>This bug is caused by a regression within the debian package of rails, which was introduced in<br />the (security) upgrade from 2.3.5-1.2 to 2.3.5-1.2+squeeze0.1</p>
<p>See this entry of the Debian BTS <a class="external" href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=629067">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=629067</a> for the bug report on rails, which is containing a workaround.</p>
Redmine - Defect #8477: Undefined method `html_safe!'
https://www.redmine.org/issues/8477?journal_id=29719
2011-06-09T15:21:23Z
Etienne Massip
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Invalid</i></li></ul><p>Nice catch, good to know.</p>
Redmine - Defect #8477: Undefined method `html_safe!'
https://www.redmine.org/issues/8477?journal_id=45416
2013-02-07T17:59:05Z
Lawrence Krubner
<ul></ul><p>Why would I get an error when using the method html_safe?</p>
<p>Installing everything new today, on a Centos server, running Phusion Passenger and Nginx. Ruby 1.8.7. Redmine 2.2</p>
<p>Completed 500 Internal Server Error <br />ActionView::Template::Error (undefined method html_safe' for nil:NilClass):</p>