Title / Description
Code <%- title "Edit Page" -%> <div class="page-form"> <h1>Edit Page</h1> <%= error_messages_for :page %> <%= form_for(@page, :url => page_path(:id => @page), :html => {:multipart => true, :method => :put} ) do |form| -%> <%= render :partial => form %> <%= form.submit 'Save', :class=>"btn-submit btn-primary" -%> <%= link_to "Cancel", 'javascript:history.go(-1);', :class=>"btn-submit" -%> <% end %> </div>
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code