Multiply forms?


#1

Hi,

On my homepage i want a form with the element drop-down-box. When the
visitor select one of the values from the drop-down-box and click on
submit, the visitor go’s to the details-page where the value from the
drop-down-box is filled in and the visitor are suggested the complete
the form.

I am a newbie…so can someone put me in the right direction

Thanks…Remco


#2

in the view:

<% form_tag :action => ‘redirect’ do %>
<%= select_tag :target, [‘option1’, 'option2, ‘option3’ ] %>
<%= submit_tag “go” %>

in the controller:

def redirect
redirect_to :action => params[:target], :controller =>
‘controller_name’
end

that help at all?

On Apr 16, 1:46 pm, Remco S. removed_email_address@domain.invalid