Sha256: 8788fd410cfed70e54697972f0e64234846ca0f56eb10d41c0f56cfce341cfac

Contents?: true

Size: 566 Bytes

Versions: 6

Compression:

Stored size: 566 Bytes

Contents

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

<% if @book.errors.any? %>
  <div class="errors">
    <% @book.errors.full_messages.each do |message| %>
      <div class="alert alert-danger"><%= message %></div>
    <% end %>
  </div>
<% end %>

<%= form_for @book, url: author_books_path(@author) do |f| %>
  <div class="form-group">
    <%= f.label :title %>
    <%= f.text_field :title %>
  </div>
  <div class="form-group">
    <%= f.label :description %>
    <%= f.text_area :description %>
  </div>
  <button class="btn btn-success" type="submit">Save</button>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

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