From 1980e376b506599c67b78113696b08f2b0ef2889 Mon Sep 17 00:00:00 2001 From: Bruno Michel Date: Sun, 11 Oct 2009 00:35:55 +0200 Subject: [PATCH] button_to should generate an html_safe string --- actionpack/lib/action_view/helpers/url_helper.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index d106e68..90ac529 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -308,8 +308,8 @@ module ActionView html_options.merge!("type" => "submit", "value" => name) - "
" + - method_tag + tag("input", html_options) + request_token_tag + "
".html_safe! + ("
" + + method_tag + tag("input", html_options) + request_token_tag + "
").html_safe! end -- 1.6.3.3