# How to submit a drop down menu using forms

**URL:** <https://www.ruby-forum.com/t/how-to-submit-a-drop-down-menu-using-forms/190859>\
**Category:** Rails\
**Created:** [June 29, 2010, 11:42am UTC](https://www.ruby-forum.com/t/how-to-submit-a-drop-down-menu-using-forms/190859 "2010-06-29T11:42:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![atin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8e8cbc/32.png) [@atin](https://www.ruby-forum.com/u/atin)\
**Post date:** [June 29, 2010, 11:42am UTC](https://www.ruby-forum.com/t/how-to-submit-a-drop-down-menu-using-forms/190859/1 "2010-06-29T11:42:28Z")

</div>

Hi  
I am learning rails & I am developing a blog site using it so i want  
to make a drop down menu which would have the title of the blog & on  
selecting that title i should be redirected to the show page of blog  
contents  
I have 2 models  
Blog:  
title  
has\_many articles

Artcile:  
name  
author  
date  
body  
belongs\_to blog

---

<div class="post-metadata">

**Author:** ![atin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8e8cbc/32.png) [@atin](https://www.ruby-forum.com/u/atin)\
**Post date:** [June 29, 2010, 12:31pm UTC](https://www.ruby-forum.com/t/how-to-submit-a-drop-down-menu-using-forms/190859/2 "2010-06-29T12:31:05Z")

</div>

atin wrote:

> Hi  
> I am learning rails & I am developing a blog site using it so i want  
> to make a drop down menu which would have the title of the blog & on  
> selecting

you need javascript to handle event onselect

that title i should be redirected to the show page of blog

> contents  
> I have 2 models  
> Blog:  
> title  
> has\_many articles
> 
> Artcile:  
> name  
> author  
> date  
> body  
> belongs\_to blog

If you want to do it using forms you must show some button to submit  
form data
