Skip to content

Instantly share code, notes, and snippets.

@xdite
Created November 1, 2008 11:05
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/21503 to your computer and use it in GitHub Desktop.
Save xdite/21503 to your computer and use it in GitHub Desktop.
<h1>Editing post</h1>
<% form_for :post , :url => blog_path(@post) , :html => {:method => :put} do |f| -%>
<%= f.error_messages %>
<div><%= f.text_field :subject %>
<div><%= f.text_area :content %></div>
<%= f.submit "Submit", :disable_with => 'Submiting...' %>
<% end -%>
<%= link_to 'Show', blog_path(blog) %> |
<%= link_to 'Back', blogss_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment