Skip to content

Fix the Archive Link #2

@jendiamond

Description

@jendiamond

The link in the side bar "ARCHIVES" should go to a page where all the posts are listed. Right now it is broken. The error is:

NameError at /archives  
undefined local variable or method `article_months' for #<Nesta::App:0x00000003640318>
file: app.rb location: archive_by_month line: 88

app.rb
  def archive_by_month
    article_months.each do |month_name|
      haml_tag :li do
        haml_tag :a, :id => "#{month_name}"
        haml_tag :h2, month
        haml_tag :ol do
          articles = Page.find_articles.select { |a| a.date.month == month }
          list_articles(articles)
        end
      end
    end
  end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions