dropdown menu using select tag in ruby

Posted by user588324 on Stack Overflow See other posts from Stack Overflow or by user588324
Published on 2011-02-25T22:58:54Z Indexed on 2011/02/25 23:25 UTC
Read the original article Hit count: 188

Filed under:

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????

© Stack Overflow or respective owner

Related posts about ruby-on-rails-3