hamlがあまりにも気持ち悪いので、erbで実装したのですが、そのコードを参考のために載せておきます。

動作が確認済。

元記事はmerb wikiのMy First Blog

index.html.erb

<table>
<%- @posts.each do |post| %>
<tr>
<td><%= post.title %></td>
<td><%= link_to “Show”, url(:post,post) %></td>
<td><%= link_to “Edit”, url(:edit_post,post) %>/td>
</tr>
<%- end %>
</table>
<%= link_to “New”, url(:new_post) %>

new.html.erb

<%= error_messages_for :post %>
<%= form_for( @post, :action => url(:posts)) do %>
<%= partial :form %>
<p><%= submit “Create” %></p>

<% end =%>

<%= link_to ‘Back’, url(:posts) %>

show.html.erb

<p><%= @post.title %></p>
<p><%= @post.body %></p>

<br />
<hr />

<h1>Comments</h1>
<p>
<%= partial “comments/show”, :with => @post.comments.reverse, :as => :comment %>
</p>
<%= partial “comments/comment” %>

<%= link_to ‘Edit’, url(:edit_post,  @post) %>

<%= link_to ‘Back’, url(:posts) %>

edit.html.erb

<%= error_messages_for :post %>

<%= form_for(@post, :action => url(:post, @post)) do %>
<%= partial :form %>
<p><%= submit “Update” %></p>
<% end =%>
<%= link_to “Show”, url(:post, @post) %>
<%= link_to “Back”, url(:posts) %>

_form.html.erb

<p>
<%= text_field :title %>
</p>
hogehoge
<p>
<%= text_area :body %>
</p>

_show.html.erb

<p><%= comment.name %></p>
<p><%= comment.body %></p>

_comment.html.erb

<p>
<%= error_messages_for :comment %>
</p>

<p>
<%= form_for(:comment, :action => “/posts/#{@post.id}/comments”) do %>
<p><%= text_field :name, :name => “comment[name]” %></p>
<p><%= text_area  :body %></p>
<p><%= submit “Comment” %></p>
<% end =%>

</p>