mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-12 01:36:26 -04:00
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.
11 lines
343 B
Plaintext
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.
|