Hi All,
I am attempting to use a link_to helper to perform a form post using the
following construct:
<%= link_to ‘Save’, {:action =>‘create’}, :post => true %>
What I find is the parameters passed to the webserver are empty. My
model validation stuff triggers indicating the fields in question are
empty too. This is to create a new DB entry so no ID is being passed,
although there are a few required parameters obviously.
This works fine if I use:
<%= submit_tag “Create” %>
So do I need to specify the parameters as part of the link_to?
ROR 1.2.2
Any help is appreciated,
Rick