Skip to content

Instantly share code, notes, and snippets.

@tubbo
Created November 13, 2009 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tubbo/234251 to your computer and use it in GitHub Desktop.
Save tubbo/234251 to your computer and use it in GitHub Desktop.
<h2>post a new message</h2>
<% form_for [:blog, @post], :html=>{:method=>:post} do |f| %>
<%= f.error_messages %>
<fieldset>
<legend>content</legend>
<%= f.text_field :title %><br /><br />
<%= f.text_area :body %><br />
<div style="width: 100%; text-align: center">
in... <%= collection_select :post, :category, Category.all, :id, :name, {:prompt => true} %>
</div>
</fieldset>
<br /><br />
<fieldset>
<legend>options</legend>
[ ] Post to Twitter<br />
[ ] Post to Digg<br />
[ ] Enable Commenting<br />
</fieldset>
<br /><br />
<div align="center"><input id="post_submit" name="commit" type="submit" value="Post!" /></div>
<% end %>
<%= link_to 'Back', blog_posts_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment