form_for can also accept an arbitrary character:
<%= form_for :anything, url: "my_controller/my_action" do |form| %> <%= form.text_field :name %> <%= form.submit %> <% end %>
This will send a message to my_controller/my_action .
The html output will look something like this:
<form accept-charset="UTF-8" action="my_controller/my_action" method="post"> <input id="anything_name" name="anything[name]" type="text"> <input name="commit" type="submit" value="Save Testing"> </form>
Josh
source share