.page{id: "page_#{@page.id}", data: {page_id: @page.id}} = render 'breadcrumb' .row .col-md-1 = render 'page_header' .col-md-11 = render 'display' = render 'subtree' = render 'attachments' .row .col-md-12{style: "text-align: right;"} %hr = link_to "Delete Page", wiki_page_path(@page), class: 'delete-link', data: {confirm: "Really?", description: "This will also delete all child pages and attachments.", method: :delete} :javascript $(function() { var page_view = new Tawork.Views.PageView({ el: $("#page_#{@page.id}").get(0)}); });