You can use the last method of Array to figure out if you're on the last post
<% if post == @posts.last -%>
You can use the last method of Array to figure out if you're on the last post
<% if post == @posts.last -%>
<% if post == @posts.last -%>
Hi Franz,
works like a charm! Thank you.
P.