Skip to content

Commit

Permalink
truncate post text on index page
Browse files Browse the repository at this point in the history
  • Loading branch information
AimeeKnight committed Jun 26, 2014
1 parent 4ce7bc9 commit dfb3339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/blogament/posts/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>
<div class="panel-body">
<blockquote>
<p><%= raw post.text %></p>
<p><%= raw post.text.truncate(50) %></p>
</blockquote>

<%= raw post.tags.map(&:name).map { |t| link_to t, tag_path(t), class: "label label-default" }.join(' ') %>
Expand Down

0 comments on commit dfb3339

Please sign in to comment.