Sha256: 78984fa3a0ee7d51da7402f73e7419f4818bf4865731ac722bcbfa7e19d72042

Contents?: true

Size: 1019 Bytes

Versions: 6

Compression:

Stored size: 1019 Bytes

Contents

<h3><%= @author.name %></h3>

<div class="media">
  <div class="media-body">
    <p> id :
    <%= @author.id %></p>
  </div>
</div>

<div class="btn-group">
  <%= link_to edit_author_path(@author), class: "btn btn-primary btn-sm" do %>
    <i class="glyphicon glyphicon-edit"></i>
    <span>Edit Author</span>
  <% end %>
  <%= link_to author_path(@author), class: "btn btn-danger btn-sm", method: :delete do %>
    <i class="glyphicon glyphicon-trash"></i>
    <span>Delete Author</span>
  <% end %>
</div>

<h3><%= @author.name %>'s Books</h3>


<% @books.each do |book| %>

  <div class="panel panel-default">
    <div class="panel-body">
      <%= link_to book_path(book) do %>
        <h3 class="panel-title"><%= book.title %></h3>
      <% end %>
    </div>
  </div>

<% end %>

<% if @books.none? %>
  <p>No books found.</p>
<% end %>

<%= link_to new_author_book_path, class: "btn btn-success btn-sm" do %>
  <i class="glyphicon glyphicon-plus"></i>
  <span>Add <%= @author.name %>'s Book</span>
<% end %>

<p>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gdatastore_mapper-0.1.8 rails_example/app/views/books/index.html.erb
gdatastore_mapper-0.1.7 rails_example/app/views/books/index.html.erb
gdatastore_mapper-0.1.6 rails_example/app/views/books/index.html.erb
gdatastore_mapper-0.1.5 rails_example/app/views/books/index.html.erb
gdatastore_mapper-0.1.4 rails_example/app/views/books/index.html.erb
gdatastore_mapper-0.1.3 rails_example/app/views/books/index.html.erb