Given a paper published in 1950
And a paper published in 1968
When users visit the papers index page with url parameter year=1950
Then it should not show the paper published in 1968
Hints
Almost done with the exercise!
A long list of papers can be hard to search. Allow filtering the list of papers on the paper index page (by year) with an URL parameter, e.g. http://localhost:3000/papers?year=1970.
You can use scopes to implement this behavior in the Paper model and adapt the PapersController's index action to take params[:year] into account.
Error
Expected not to find text "go to statement considered harmful" in "papers\ntitle venue year computing machinery and intelligence mind 49: 433-460 1950 show edit delete go to statement considered harmful communications of the acm 1968 show edit delete\nnew paper"
Scenario
Given a paper published in 1950 And a paper published in 1968 When users visit the papers index page with url parameter
year=1950
Then it should not show the paper published in 1968Hints
Almost done with the exercise!
A long list of papers can be hard to search. Allow filtering the list of papers on the paper index page (by year) with an URL parameter, e.g.
http://localhost:3000/papers?year=1970
. You can use scopes to implement this behavior in the Paper model and adapt the PapersController's index action to takeparams[:year]
into account.Error
43/44 exercise tests have passed