Permalink
Browse files

Merge pull request #185 from ArturG/blog_admin

Fixed view of blog's admin panel
  • Loading branch information...
2 parents 3180081 + 27911d7 commit 211605c72e0e4bfb381e8b8eab384da6b63a8e62 @PragTob PragTob committed Feb 26, 2014
Showing with 7 additions and 6 deletions.
  1. +7 −6 app/views/blog/admin.html.haml
@@ -1,12 +1,13 @@
%h1 Blog Admin
%h2 New Post
-= form_for @post, :url => blog_index_path do |f|
- = f.label :title
- = f.text_field :title
- = f.label :content
- = f.text_area :content
- = f.submit
+= simple_form_for @post, :url => blog_index_path do |f|
+ .inputs
+ = f.input :title
+ = f.input :content, :as => :text
+
+ .actions
+ = f.button :submit, :value => "Create Blog post", :class => "primary btn"
%h2 All Posts
%ul

0 comments on commit 211605c

Please sign in to comment.