Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @recent_articles = Article.get_recent
- - cache(cache_key_for_recent_articles) do
- %h3 RECENT ARTICLES
- - @recent_articles.each do |article|
- .recent-article
- = link_to add_glyph_to_link("glyphicon glyphicon-chevron-right", article.name), article_path(article, recent: true)
- - if Article.count > 4
- = link_to "MORE ARTICLES", articles_path(), class: "btn btn-primary more-articles"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement