Revision: 28998
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 18, 2010 14:43 by Boulder
Initial Code
#article_drop.rb ## this goes in app/drops/article_drop.rb def next? [email protected]? end def previous? [email protected]? end #previous link {% if article.previous? %} {{ article | previous_article | link_to_article }} {% else %} <a href="/">home</a> {% endif %} #next link {% if article.next? %} {{ article | next_article | link_to_article }} {% else %} <a href="/">home</a> {% endif %}
Initial URL
http://tesoriere.com/2009/4/mephisto-next-article-link-and-previous-article-link
Initial Description
Initial Title
Mephisto previous/next articles
Initial Tags
Initial Language
Rails