dropdown menu using select tag in ruby
- by user588324
I want to create a drop down menu having options and then on selecting option i will hit the submit button that will redirect me to the particular. I have code something like this
<%= select_tag "options", options_for_select([["Dashboard", "/homes/"+user.saving_account.id.to_s], ["Edit", "/user/"+registrar]] ) %>
Now I want when I choose any of these option and hit button that will redirect either of these.
Any ideas????