This project is archived and is in readonly mode.

#4068 ✓resolved
Greg Hazel

button_to should be html_safe!

Reported by Greg Hazel | February 27th, 2010 @ 01:40 AM | in 3.0.2

button_to is not html_safe:

button_to('Join', :controller => 'test', :action => 'join').html_safe? #=> nil

However, link_to is:

link_to('Join', :controller => 'test', :action => 'join').html_safe? #=> true

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Tags

Pages