Skip to content

Commit

Permalink
Link to new content piece
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Glen committed Jun 11, 2014
1 parent 8a819b1 commit 46125cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/smithy/content_pieces/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<% content_for :title, "#{klass_name}" %>

<p><%= link_to "New #{klass_name}", "#{request.url}/new", :class => "btn btn-mini" %></p>
<table border="0" cellpadding="4" class="table table-hover table-bordered">
<thead>
<tr>
Expand All @@ -10,7 +12,7 @@
<%- @records.each do |record| %>
<tr>
<td>
<%= link_to "Edit", [:edit, record], :class => "btn btn-mini" %>
<%= link_to "Edit", [:edit, record], :class => "btn btn-mini" %>
</td>
<%- readable_attributes.map(&:to_sym).each do |attribute| %>
<td><%= record[attribute] %></td>
Expand Down

0 comments on commit 46125cc

Please sign in to comment.