Skip to content

Instantly share code, notes, and snippets.

@xdite
Created November 1, 2008 11:04
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 xdite/21501 to your computer and use it in GitHub Desktop.
Save xdite/21501 to your computer and use it in GitHub Desktop.
<h1>New post</h1>
<% form_for :post , :url => blogs_path do |f| -%>
<%= f.error_messages %>
<div><label>subject</label><%= f.text_field :subject %></div>
<div><label>content</label><%= f.text_area :content %> </div>
<%= f.submit "Submit", :disable_with => 'Submiting...' %>
<% end -%>
<%= link_to 'Back', blogs_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment