module Blog::Views def view _post(@post) p "Comment for this post:" for c in @comments h1 c.username p c.body end form :action => R(Comment), :method => 'post' do label 'Name', :for => 'post_username'; br input :name => 'post_username', :type => 'text'; br label 'Comment', :for => 'post_body'; br textarea :name => 'post_body' do; end; br input :type => 'hidden', :name => 'post_id', :value => @post.id input :type => 'submit' end end end