Skip to content

Instantly share code, notes, and snippets.

Created July 22, 2008 01:34
Show Gist options
  • Select an option

  • Save anonymous/580 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/580 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>SimpleBlog for Practicing Ruby on Rails - Editing Post(<%=h @post.title %>)</title>
</head>
<body>
<p>
<b align="center">Editing Post</b>
</p>
<% form_tag :action => 'edit_save', :id => @post.id do %>
<p>
<label>Title</label><br />
<%= text_field 'post', 'title' %>
</p>
<p>
<label>Author</label><br />
<%= text_field 'post', 'author' %>
</p>
<p>
<label>Body</label><br />
<%= text_area 'post', 'body' %>
</p>
<p>
<label>Time</label><br />
<%= text_field 'post', 'created_at' %>
</p>
<%= submit_tag 'Done' %>
<% end %>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment