This project is archived and is in readonly mode.

#6610 ✓invalid
Bruno Antunes

Calling html_safe on a heredoc stalls development server

Reported by Bruno Antunes | March 23rd, 2011 @ 05:23 PM

This helper works (in application_helper.rb):

  def facebook_button(options={})
    markup = ''
    markup += "<a class=\"fb_button fb_button_medium\" href=\"#{options[:link]}\">"
    markup += "<span class=\"fb_button_text\">#{options[:text]}</span>"
    markup += "</a>"


But this makes the development server stall in a way that only a kill -9 closes it:

  def facebook_button(options={})
    <a class="fb_button fb_button_medium" href="#{options[:link]}">
      <span class="fb_button_text">#{options[:text]}</span>


I actually don't assign the heredoc :D but it shouldn't get stuck... right?

I'm on Arch Linux x86_64, using Rails 3.0.4 on REE 2011.03. I tried both WEBrick and Thin (1.2.8).


Bruno A.

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=""></a>