I'm sure there's a couple of ways to do this but the first that popped in my head. I think the easiest approach is to simply place the data you want in a hidden field inside the form_tag
. Like so:
<%= form_tag ...your form_tag params... do %>
<%= hidden_field_tag :foo, "hello world" %>
<%end%>
That will get sent to the server accessible by params[:foo]
.
Here's some documentation regarding the hidden_field_tag
.
Hope that helps