We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3180081 commit 27911d7Copy full SHA for 27911d7
1 file changed
app/views/blog/admin.html.haml
@@ -1,12 +1,13 @@
1
%h1 Blog Admin
2
3
%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
+= simple_form_for @post, :url => blog_index_path do |f|
+ .inputs
+ = f.input :title
+ = f.input :content, :as => :text
+
+ .actions
10
+ = f.button :submit, :value => "Create Blog post", :class => "primary btn"
11
12
%h2 All Posts
13
%ul
0 commit comments