Re: Multiply forms?

Gavin
Thu, 16 Apr 2009 12:53:32 -0000

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 Swoany
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> 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
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---