Created
November 13, 2009 23:14
-
-
Save tubbo/234251 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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