Skip to content

Instantly share code, notes, and snippets.

@tekin
Created March 18, 2009 22:18
Show Gist options
  • Save tekin/81444 to your computer and use it in GitHub Desktop.
Save tekin/81444 to your computer and use it in GitHub Desktop.
<%= select(:post, :category, Post::CATEGORIES, :disabled => 'private') %>
<!— Give's you something like —>
<select name="post[category]">
<option>story</option>
<option>joke</option>
<option>poem</option>
<option disabled="disabled">private</option>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment