Sha256: e31b8b05b4c551c96408bfdc99534e5141c747737521bb2c5b015b8f9665cb51

Contents?: true

Size: 983 Bytes

Versions: 2

Compression:

Stored size: 983 Bytes

Contents

<div>
  <div id="erd_container">
    <%=raw @erd %>
  </div>

  <div id="migration">
    <%- if flash[:generated_migrations].present? -%>
      <div id="generated">
        generated migrations (please run rake db:migrate)
        <ul>
        <%- flash[:generated_migrations].each do |m| -%>
          <li><%= m %></li>
        <%- end -%>
        </ul>
      </div>
    <%- end -%>
    <%- if flash[:failed_migrations].present? -%>
      <div id="generated">
        failed migrations
        <ul>
        <%- flash[:failed_migrations].each do |m| -%>
          <li><%= m %></li>
        <%- end -%>
        </ul>
      </div>
    <%- end -%>
    <table id="changes">
      <thead><tr><th>action</th><th>model</th><th>column</th><th>from</th><th>to</th></tr></thead>
      <tbody></tbody>
    </table>
    <%= form_tag '/erd', :method => :put, :id => 'changes_form' do %>
      <%= hidden_field_tag 'changes' %>
      <%= submit_tag 'save changes' %>
    <% end %>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
erd-0.0.2 app/views/erd/erd/index.html.erb
erd-0.0.1 app/views/erd/erd/index.html.erb