Remco Hh wrote:
hi i have a weird problem:
this is my view:
<%= start_form_tag :action => 'new_beschikbaarheid', :behandelaar_id
=>@behandelaar, :year => @year%>
<%= submit_tag 'Opzoeken' %>
<%= end_form_tag %>
when i hit the submit button i get this url:
where does the amp sign come from and better: how can i get rid of it:
i sure hope someone can help me, i don't know what to do anymore....
This is a known problem with some of the tag helpers that handle URLs
-- they double-escape the URL so that & becomes &amp; instead of
just & in the HTML.
I've written a patch to fix this, but it's not been accepted yet:
In the meantime you could work around it with some ugly code like this:
<form action="<%= url_for(:action => 'new_beschikbaarheid',
=>@behandelaar, :year => @year) %>">
Alternatively you could write yourself a custom route so that the
generated URL doesn't contain any ampersands:
or something like that.