app/views/layouts/mercury.html.haml
!!!
%html
%head
%meta{:content => "width=device-width, maximum-scale=1.0, initial-scale=1.0", :name => "viewport"}/
= csrf_meta_tags
%title Content Manager
= stylesheet_link_tag 'mercury_engine/mercury'
= javascript_include_tag 'jquery-1.7', 'mercury_engine/mercury'
%body
:javascript
// Set to the url that you want to save any given page to, leave null for default handling.
var saveUrl = null;
// Instantiate the PageEditor
new Mercury.PageEditor(saveUrl, {
saveStyle: 'form', // 'form', or 'json' (default json)
saveMethod: null, // 'PUT', or 'POST', (create, vs. update -- default PUT)
visible: true // boolean - if the interface should start visible or not
});