Blank
HTML truncation & pagination for Rails 3.
Category: Coding
Posts: 10

Top posts

Attention!

‘html_slicer’ versions 0.1.3, 0.1.4, 0.1.5 and 0.1.6 have been yanked due to dependency bugs.

Please use 0.1.7 instead.

Posted to Project 'HTML Slicer'

Version 0.1.2 released.

  • Visual separating (:text_break) functionality improved.
  • “Read more”: Now, pass dynamic content to the end of slice, directly from ActionView environment.
Posted to Project 'HTML Slicer'
Cache updating
26 Jul 00:22

Pretty simple. Just save the record again. :)

>> Article.find(N).save

or for all articles:

>> Article.all.each { |a| a.save }
Posted to: Project 'HTML Slicer'

Version 0.1.1 released.
String#match replaced with String#scan. So, this version is ~2-3 times faster.

Posted to Project 'HTML Slicer'

Version 0.1.0 released.

  • The big changes. :)
  • Code has been optimized and rewritten by ~70%.
  • Caching option provided.

Look at Documentation & Source.

Posted to Project 'HTML Slicer'