#19 ✓resolved
AJ

Archives sidebar is broken against datamapper edge

Reported by AJ | July 8th, 2008 @ 06:30 PM | in 0.5

The archives getter was disabled a while ago due to incompatibilities against the datamapper edge.

commit 17e1dda086509e223c48cac5422dd5236576d8d8
Author: Alexander Flatter <flatter@alexander-flatters-macbo...>
Date:   Wed May 14 18:10:04 2008 +0200

    Seems to be compatible to current datamapper trunk
---
 app/controllers/articles.rb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/app/controllers/articles.rb b/app/controllers/articles.rb
index 326b3a3..99c35d0 100644
--- a/app/controllers/articles.rb
+++ b/app/controllers/articles.rb
@@ -3,7 +3,8 @@ class Articles < Application

   # This handles the index (recent articles), or the year/month/day views
   def index
-    @archives = Article.get_archive_hash
+    #@archives = Article.get_archive_hash
+    @archives = []
     if params[:day]
       @articles = Article.find_by_year_month_day(params[:year], params[:month], params[:day])
     elsif params[:month]

I've fixed the related code, and made it so that we don't load up config/database.yml to get at the adapter.

http://github.com/fujin/feather/...

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The core code for Feather, a lightweight Merb-based blogging engine.

People watching this ticket

Pages