diff options
author | Li Ellis Gallardo <lellisga@gmail.com> | 2012-04-28 01:48:28 -0500 |
---|---|---|
committer | Li Ellis Gallardo <lellisga@gmail.com> | 2012-05-26 10:24:17 -0500 |
commit | 38813da6dc6611d6b68dd4d584012c19e86a218a (patch) | |
tree | 1d49f5dc7820e01a31da763fdcdbd6905de778e9 /.travis.yml | |
parent | 2114e2187dd8cbdcc0ab304ec0adf1a1bf5cc09a (diff) | |
download | rails-38813da6dc6611d6b68dd4d584012c19e86a218a.tar.gz rails-38813da6dc6611d6b68dd4d584012c19e86a218a.tar.bz2 rails-38813da6dc6611d6b68dd4d584012c19e86a218a.zip |
Truncate now has the ability to receive a html option that allows it to call rails helpers.
This way if my text is long I don't have to do something like this:
.text
= truncate(@text, :length => 27)
if @text.size >= 27
= link_to "continue", notes_path, ....."")
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions