Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

button_to should be html_safe!

#4068

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

Reported by Greg Hazel · February 27th, 2010 @ 01:40 AM

State: resolved
Milestone: 3.0.2
Assigned to: DHH DHH
Importance: High

Activity

  1. José Valim
    José Valim
    • Assigned user set to DHH
    • Milestone cleared.

    March 3rd, 2010 @ 09:03 AM

  2. Santiago Pastorino
    Santiago Pastorino

    This bug report it's old.
    returns true for me.
    It was fixed by this commit http://github.com/rails/rails/commit/4cbb9db0#L17R315

    March 4th, 2010 @ 11:51 AM

  3. José Valim
    José Valim
    • State changed from new to resolved

    March 4th, 2010 @ 11:52 AM

  4. Greg Hazel
    Greg Hazel

    Well "old" as in it applies to the currently released version: 2.3.5

    March 4th, 2010 @ 09:23 PM

  5. Santiago Pastorino
    Santiago Pastorino

    Sorry Greg my english isn't good enough, i mean it's old in the sense that it's already applied to 2-3-stable and master branches

    March 4th, 2010 @ 09:38 PM

  6. Greg Hazel
    Greg Hazel

    I can confirm that after upgrading to 2.3.8 this is fixed, so maybe the "Milestone" should be moved back to where the fix made it in.

    May 26th, 2010 @ 12:57 AM

  7. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to High

    October 15th, 2010 @ 11:01 PM