- @title = root = partial('header', locals: { file: true, idx: idx }) %form.edit{ action: "/#{idx}#{request.path_info}?mode=save", method: 'POST', style: 'display:none;' } #editor %textarea#data{ name: 'data' }= preserve contents .clearfix %textarea.span16#message{ name: 'message', placeholder: 'Optional commit message.' } %input.btn.primary{ type: 'submit', value: 'Save' } %a.btn.secondary{ href: "/#{idx}#{request.path_info}" } Cancel %input.filename{ type: 'hidden', value: request.path_info } = partial('ace_scripts')