DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Form Tags

01.07.2006
| 321 views |
  • submit to reddit
        // Pulldown Menu

<select id="author_languages_id" name="author[languages_id]">
<%= options_from_collection_for_select @languages, "id", "country",
@author.languages_id %></select>

// Input veld
<input id="author_year_of_birth" name="author[year_of_birth]" 
         size="30" type="text" 
         value="<%= @author.year_of_birth %>" />