Files
growstuff/app/views/posts/edit.html.haml
Skud edb59e07ee s/users/members/g -- all tests pass
There's still probably stuff broken, but this seemed like a good spot to
commit.  Sorry for the enormous chunk of code.  I was attempting to
update the views, but found that I needed to update a few things
elsewhere as well to make them work.
2013-01-13 18:33:43 +11:00

11 lines
343 B
Plaintext

= content_for :title, "Edit post"
- if member_signed_in?
= form_for @post do |f|
= label_tag :subject, "Subject"
= f.text_field :subject, :class => 'input-block-level'
= f.text_area :body, :rows => 12, :class => 'input-block-level'
= f.submit "Post"
- else
.alert You're not logged in. Only logged in members can do this.