Skip to content

Commit 27911d7

Browse files
committed
Fixed view of blog's admin panel
1 parent 3180081 commit 27911d7

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

app/views/blog/admin.html.haml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
%h1 Blog Admin
22

33
%h2 New Post
4-
= form_for @post, :url => blog_index_path do |f|
5-
= f.label :title
6-
= f.text_field :title
7-
= f.label :content
8-
= f.text_area :content
9-
= f.submit
4+
= simple_form_for @post, :url => blog_index_path do |f|
5+
.inputs
6+
= f.input :title
7+
= f.input :content, :as => :text
8+
9+
.actions
10+
= f.button :submit, :value => "Create Blog post", :class => "primary btn"
1011

1112
%h2 All Posts
1213
%ul

0 commit comments

Comments
 (0)