12 lines
398 B
Plaintext
12 lines
398 B
Plaintext
|
-if flash[:errors].nil?
|
||
|
-@post.errors.each do |error|
|
||
|
.error=error
|
||
|
%form{:action => "/admin/post", :method => :post}
|
||
|
.fields
|
||
|
%input{:type => :hidden, :name => "_method", :value => :put}=""
|
||
|
=(haml :admin_post_edit, :layout => nil)
|
||
|
.buttons
|
||
|
%button{:type => :submit}="Create"
|
||
|
%button{:type => :submit, :formmethod => :get,
|
||
|
:formaction => '/admin/post'}="Back"
|