I have a form for a nested resource (Client :has_many Workouts) that I want to pre-populate based on some user input (I use this input to set up some other default parameters for the new action).
<% form_tag new_client_workout_path(@workout_user) do%>
<%= date_select nil, :date %>
<%= submit_tag 'Enter New Workout' %><br/>
<% end %>
If I submit this form I get the following error.
ActionController::MethodNotAllowed Only get, put, and delete requests are allowed.
I can update the form's method to get, which works, but then I have all of my form paramters on the query string which I don't want.
Is there some way to accomplish this using a post?
I've done something similar when the resource wasn't nested and it worked fine.