This category contains 1 post

How to implement “show more” and “show less” using a hidden counter when rendering a collection

While rendering a collection, I wanted to hide some items with higher indexes (and show them when clicking on “Show more”). But there is no way to tell the index when rendering :collection => @items. Then I came across this posting: Render partial with collection has hidden counter Now, when rendering <ul> <%= render :partial … Continue reading

ip tracing