Sha256: f3bd6862706e8a4e76277f0fa44a06bfecf8c07443c121dd339a66a96b93e7c0
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 KB
Contents
<%- model_class = Book.new.class -%> <h1><%=t '.title', :default => model_class.model_name.human.pluralize %></h1> <table class="table table-striped"> <thead> <tr> <th><%= model_class.human_attribute_name(:id) %></th> <th><%= model_class.human_attribute_name(:title) %></th> <th><%= model_class.human_attribute_name(:description) %></th> <th><%= model_class.human_attribute_name(:published) %></th> <th><%= model_class.human_attribute_name(:created_at) %></th> <th><%=t '.actions', :default => t("helpers.actions") %></th> </tr> </thead> <tbody> <% @books.each do |book| %> <tr> <td><%= link_to book.id, book_path(book) %></td> <td><%= book.title %></td> <td><%= book.description %></td> <td><%= book.published %></td> <td><%=l book.created_at %></td> <td> <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_book_path(book), :class => 'btn btn-mini' %> <%= link_to t('.destroy', :default => t("helpers.links.destroy")), book_path(book), :method => :delete, :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')), :class => 'btn btn-mini btn-danger' %> </td> </tr> <% end %> </tbody> </table> <%= link_to t('.new', :default => t("helpers.links.new")), new_book_path, :class => 'btn btn-primary' %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nice-0.0.2 | test/nizzaTestApp/app/views/books/index.html.erb |