aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorGuirec Corbel <guirec.corbel@gmail.com>2012-07-28 17:34:36 -0400
committerGCorbel <guirec.corbel@gmail.com>2012-09-08 07:24:17 -0400
commit963c50eca87373bed403358c076b377ad62454ef (patch)
tree7a1d91408fdc3435b8a164250d6bfb4b4e5031c0 /actionpack/lib/action_view/helpers/form_helper.rb
parentf415475621c79cbc2d93e1ecf10805a4100a5d43 (diff)
downloadrails-963c50eca87373bed403358c076b377ad62454ef.tar.gz
rails-963c50eca87373bed403358c076b377ad62454ef.tar.bz2
rails-963c50eca87373bed403358c076b377ad62454ef.zip
Add a separation option for the excerpt function
The separation option enable to keep entire words, lines or anything. To split by line, like github, we can set the separation option as \n. To split by word, like google, we can set the separation option as " ". The radius option represent the number of lines or words we want to have in the result. The default behaviour is the same. If we don't set the separation option, it split the text any where.
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
0 files changed, 0 insertions, 0 deletions