How to redirect to another page using a select menu and link_to - Ruby on Rails
Posted
by Michaël
on Stack Overflow
See other posts from Stack Overflow
or by Michaël
Published on 2010-05-31T17:07:25Z
Indexed on
2010/05/31
17:13 UTC
Read the original article
Hit count: 334
Hi,
I want to use a select menu to redirect to another page but when I select 'Home' it doesn't redirect me to the main page. Nothing happends...
<select>
<option>Select a menu</option>
<option><%= link_to 'Home', '/' %></option>
</select>
Thank you for your help.
© Stack Overflow or respective owner