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

Version Path
bivouac-0.0.5 examples/blog_goh/app/views/view.rb
bivouac-0.0.4 examples/blog_goh/app/views/view.rb
bivouac-0.0.7 examples/blog_goh/app/views/view.rb
bivouac-0.0.6 examples/blog_goh/app/views/view.rb
bivouac-0.0.3 examples/blog_goh/app/views/view.rb
bivouac-0.1.0 examples/blog_goh/app/views/view.rb
bivouac-0.0.8 examples/blog_goh/app/views/view.rb
bivouac-0.0.9 examples/blog_goh/app/views/view.rb
bivouac-0.1.1 examples/blog_goh/app/views/view.rb
bivouac-0.1.5 examples/blog_goh/app/views/view.rb
bivouac-0.1.2 examples/blog_goh/app/views/view.rb
bivouac-0.1.3 examples/blog_goh/app/views/view.rb
bivouac-0.1.4 examples/blog_goh/app/views/view.rb
bivouac-0.1.6 examples/blog_goh/app/views/view.rb
bivouac-0.2.0 examples/blog_goh/app/views/view.rb
bivouac-0.2.2 examples/blog_goh/app/views/view.rb
bivouac-0.2.3 examples/blog_goh/app/views/view.rb
bivouac-0.2.1 examples/blog_goh/app/views/view.rb
bivouac-0.3.0 examples/blog_goh/app/views/view.rb
bivouac-0.2.4 examples/blog_goh/app/views/view.rb