Displaying 1 result from an estimated 1 matches for "newtag".
Did you mean:
newtab
2006 Mar 29
1
Help: Input of form 1 to hidden field in form 2?
...gt;
Here is the partial (form1):
<!--[form:tag]-->
<p>
<%= text_field ''tag'', ''tag'' %></p>
<!--[eoform:tag]-->
CONTROLLER:
def step1
@tag = Tag.new
render :action => ''step1''
end
def step2
@newtag = (@params[:tag])
@tag = Tag.new
render :action => ''step2''
end
FORM 2:
...
<input id="tag" name="tag" type="hidden" value="<%= @newtag %>" /></p>
RESULT:
If I submit 12345678 in form 1
I get "tag1234...