Previously, I displayed my posts in the index view in a single line using the handy :collection option in Rails 3:
<a href="http://example.com/article1.html#disqus_thr...d" data-disqus-identifier="article_1_identifier">First article</a>
Okay, what about putting the #disqus_thread anchor in the spacer partial, like this?
Unfortunately, :locals doesn't pass to the :spacer_template - I couldn't figure out if there was another way. The spacer template usually contains static data, not data fetched from the DB, which is what I need. I ended up reverting to an old fashioned loop to display my posts, for greater control:
What do you think? Any feedback? On the plus side, I can eliminate the spacer partial here - one less file to worry about.