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.

ipster's latest activity

Friday, June 25 2010
4935 text_field helper escaping html_safe content in options hash was updated in Ruby on Rails
  • ipster
    ipster commented at 5:14 AM

    The plugin doesn't seem to be able to handle escaped data, even when not within an attribute. I know this may be outside the scope of rails, but have any ideas ...

Wednesday, June 23 2010
4935 text_field helper escaping html_safe content in options hash was updated in Ruby on Rails
  • ipster
    ipster commented at 4:26 AM

    Thanks Michael,

    The "script" was the simplest example I could think of that didn't work, although it probably doesn't make a lot of sense as a practical exercis...

  • ipster
    ipster commented at 3:23 AM

    oops my original ticket should read what you have:

    <%= f.text_field(:foo, "data-bar" => "<script>".html_safe) %>
    
    and that didn't seem to work - does it work f...
Tuesday, June 22 2010
4935 text_field helper escaping html_safe content in options hash was updated in Ruby on Rails
  • ipster
    ipster commented at 8:54 PM

    Forgot to format code - revised below:

    I am trying to add a data-attribute to a text_field by including it in the options hash:

    <%= f.text_field(:foo, "data-ba...
  • ipster
    ipster created the ticket at 8:46 PM

    I am trying to add a data-attribute to a text_field by including it in the options hash:

    <%= f.text_field(:foo, "data-bar" => "

    rails is outputting:

    instead of

    ...

Tuesday, May 25 2010
4694 link_to with block failing on 2.3.8 with rails_xss was updated in Ruby on Rails
  • ipster
    ipster commented at 10:43 PM

    Oops - thanks! Sorry for the false alarm

  • ipster
    ipster created the ticket at 7:56 PM

    I'm getting an

    "Undefined method stringify_keys' for "/foo":ActiveSupport::SafeBuffer"

    when I try to pass a block to the link_to helper with rails 2.3.8 and the...