From 27911d73883d2876ab21b144c75bbefe9b3e3327 Mon Sep 17 00:00:00 2001 From: Artur-Gaifutdinov Date: Tue, 25 Feb 2014 21:59:11 -0500 Subject: [PATCH] Fixed view of blog's admin panel --- app/views/blog/admin.html.haml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/views/blog/admin.html.haml b/app/views/blog/admin.html.haml index e5f17e1a..03c9bea9 100644 --- a/app/views/blog/admin.html.haml +++ b/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