블로그 엔진에 레일스를 사용하고 있습니다. 게시물이 게시 된 고유 한 달 및 연도를 기반으로 보관하는 보관 기능을 구현하고 있습니다.블로그 아카이브의 고유 날짜 선택
Scenario: Displaying an archive menu from distinct posts months and years
Given the following posts exists for the blog "Blondinbella":
| Title | Published at |
| Redbull | 1 March 2010 11:00 |
| Tuesday outfit | 2 January 2010 11:00 |
| Monday outfit | 1 January 2010 11:00 |
| Another outfit | 1 December 2009 11:00 |
When I visit the blog "Blondinbella"
Then I should see "March 2010" in the archive menu
And I should see "January 2010" in the archive menu
And I should see "December 2009" in the archive menu
But I should not see "February 2010" in the archive menu
내가 힘든 시간이를위한 최선의 방법을 파악하는 데 문제 :
다음은 오이 기능입니다. SQL 쿼리로 하드 코어에 들어가야할까요? 그렇다면 어떻게 보입니까? (PostgreSQL 사용)
아니면 순수한 레일즈를 사용하여 부드럽게 처리 할 수 있습니까?
을 " 하드 코어 "? – araqnid