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.

Fjan's latest activity

Wednesday, November 03 2010
4858 ActionMailer is html escaping ampersand (&) in Urls in plain text messages was updated in Ruby on Rails
  • Fjan
    Fjan commented at 8:51 PM

    Just a quick follow up to myself, I looked at the code and all that is needed to make "<%== ..." behave as "<%= raw ..." is this snippet in an initializer:

    mod...
  • Fjan
    Fjan commented at 7:08 PM

    I just wanted to point out that the it's not just URLs and not just ampersands: any text gets HTML escaped. This is going to trip people up who accidentally use...

1641 truncate with HTML ellipsis character entity was updated in Ruby on Rails
  • Fjan
    Fjan commented at 6:53 PM

    Emitting HTML character entities like hellip and nbsp is a bad idea since you will no longer be able to use the rails helpers to generate plain text messages. I...

Monday, September 13 2010
2713 Actionmailer does not set charset on attachments was updated in Ruby on Rails
  • Fjan
    Fjan commented at 9:06 AM

    I just tried it on Rails 3 and this appears to be no longer a problem (it sets a "charset:UTF-8" on attachments by default now). Can be marked fixed as far as I...

Tuesday, May 25 2010
4695 string added to rails_helpers gets HTML escaped was updated in Ruby on Rails
  • Fjan
    Fjan commented at 10:56 PM

    great :-)

    Well, I fixed everything by now. I actually amended the test helper to find all of them and it found a few more I hadn't caught before. It's a simple ...

  • Fjan
    Fjan commented at 10:27 PM

    Yes, it is consistent, however it is also a bug since it is consistently different from Rails versions < 2.3.8 and therefore it breaks a lot of apps which is no...

  • Fjan
    Fjan created the ticket at 8:46 PM

    If the first part of a string is a rails helper the rest of the string gets HTML escaped:

    h('test')+'<br/>' # => wrong: test&lt;br&gt;
    ''+h('test')+'<br/>' # =...
Monday, May 10 2010
3970 improve textarea helper to avoid newline quirk was updated in Ruby on Rails
  • Fjan
    Fjan commented at 3:10 PM

    I guess the reason the SGML spec absorbs the first newline is so that handwritten markup can look prettier; a text area created by rails looks messy in the sour...

Wednesday, April 21 2010
3970 improve textarea helper to avoid newline quirk was updated in Ruby on Rails
  • Fjan
    Fjan commented at 2:20 PM

    Your observation is correct, but I don't follow your conclusion. If the correct behaviour is to ignore starting line breaks then how would adding an (ignored) l...

Tuesday, February 16 2010
3970 improve textarea helper to avoid newline quirk was created in Ruby on Rails
  • Fjan
    Fjan created the ticket at 12:49 PM

    There is a little known quirk in HTML that causes a textarea tag that starts with a newline to ignore the first newline:

    textarea_tag(:test1,"Foobar")
    textarea...