This project is archived and is in readonly mode.
link_to with block failing on 2.3.8 with rails_xss
-
Santiago Pastorino
- Milestone set to 2.3.8
- State changed from new to open
- Assigned user set to Jeremy Kemper
Confirmed bug, a missing require.
This method is passing on tests because test/template/url_helper_test.rb loads action_controller, which loads active_support and then we have the stringify on tests loaded. -
Santiago Pastorino
The test i've added is not a test that makes the suite fail is only one more test for link_to with a block.
I think the abstract_test.rb file should be splitted. -
Santiago Pastorino
Attaching a patch without this test because there's another similar
-
Santiago Pastorino
- Tag changed from 2.3.8, link_to, rails_xss to 2.3.8, link_to, patch, rails_xss
- State changed from open to invalid
Sorry i got confused is not a bug.
You have to do ...
<% link_to(foo_path) do %>
<% end %>You're passing a first string parameters that shouldn't be there.
http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.htm...
Also there's a missing require on this class patch attached here.
-
Santiago Pastorino
Sorry for the formatting
You should do ...
<% link_to(foo_path) do %> THINGS ... <% end %> -
Neeraj Singh
Not a bug. As per API you should do
<% link_to(@profile) do %> <strong><%= @profile.name %></strong> -- <span>Check it out!!</span> <% end %> -
Neeraj Singh
Sorry did not see that super fast Santiago had already updated the ticket. I should have refreshed my page.
-
ipster
Oops - thanks! Sorry for the false alarm
