Sha256: f6cc489dc34381efc6244c880878209642bbf01c4c3e4e1ebad6cff9e75554ec
Contents?: true
Size: 524 Bytes
Versions: 21
Compression:
Stored size: 524 Bytes
Contents
module Blog::Views def _form(post, opts) p { "You are logged in as #{@user.username} | #{a 'Logout', :href => R(Logout)}" } form({:method => 'post'}.merge(opts)) do label 'Title', :for => 'post_title'; br input :name => 'post_title', :type => 'text', :value => post.title; br label 'Body', :for => 'post_body'; br textarea post.body, :name => 'post_body'; 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