This project is archived and is in readonly mode.

#4694 ✓invalid
ipster

link_to with block failing on 2.3.8 with rails_xss

Reported by ipster | May 25th, 2010 @ 07:56 PM | in 2.3.8

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 rails_xss plugin installed.

<% link_to("foo", foo_path) do %>
  <span class="bar">blah</span>
<% end %>

calling link_to without the block works fine.

<%= link_to("foo", foo_path) %>

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>

Attachments

Pages