# Excerpt gets too long under certain circumstances: "ActiveRecord::ValueTooLong"

**URL:** <https://meta.discourse.org/t/excerpt-gets-too-long-under-certain-circumstances-activerecord-valuetoolong/77579>\
**Category:** Bug\
**Created:** [1월 9, 2018, 1:28오후 UTC](https://meta.discourse.org/t/excerpt-gets-too-long-under-certain-circumstances-activerecord-valuetoolong/77579 "2018-01-09T13:28:45Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [1월 15, 2018, 9:20오후 UTC](https://meta.discourse.org/t/excerpt-gets-too-long-under-certain-circumstances-activerecord-valuetoolong/77579/8 "2018-01-15T21:20:18Z")

</div>

> [@gerhard](#):
>
> or at least include only the summary.

Include, and _count_ the summary, of course.

It’ll still fail with repeated extremely short summaries, so you could set a floor of a details block always counting for at least 40 characters or so (because they take vertical space, so you don’t want more than about 2 in an excerpt).

---

_[View the full topic](https://meta.discourse.org/t/excerpt-gets-too-long-under-certain-circumstances-activerecord-valuetoolong/77579)._
