Displaying 1 result from an estimated 1 matches for "submit_advanced".
2009 Feb 07
0
Simple form with option to go to advanced form
...Advanced Add Task" button on this form which when clicked
will reload the same project show view but with a full form comprising
of title, due date, lable etc.
I know i can create a new submit button in the current form
<%= submit_tag "Advanced Add Options", :class => "submit_advanced",
:name => "advanced_add" %>
and then in the receving action use
if params[:advanced_add]
render :show
end
and in show have
if params[:advanced_add]
show the advanced form
else
show the simple form
end
but because the form is going to create in the task controller it means...