Skip to content

Instantly share code, notes, and snippets.

@accuser
Created September 20, 2010 12:03
Show Gist options
  • Save accuser/587796 to your computer and use it in GitHub Desktop.
Save accuser/587796 to your computer and use it in GitHub Desktop.
/ app/views/posts/_form.html.haml
= form_for @post, :url => collection_url do |f|
%fieldset
%legend New Post
%ol
%li= f.text_field :title
%li= f.text_field :tag_list
%fieldset
%ol
%li= f.text_area :body
%fieldset
%legend Options
%ol
%li= f.check_box :comments_enabled
%fieldset
%ol
%li= f.submit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment