Sha256: dbfda960ea28fff8eb19df6ef25f8e472056048394957b6f1147070fc24ed625
Contents?: true
Size: 526 Bytes
Versions: 21
Compression:
Stored size: 526 Bytes
Contents
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
Version data entries
21 entries across 21 versions & 1 rubygems