When a user visits the new paper page
Then the page should render
Hints
A paper management system needs more than just authors. It also needs papers.
Papers should have a title and a venue string as well as an year integer that indicates when the paper was published.
Other than that, they should also be manageable by users using views similar to authors.
Instead of generating the paper model and the needed controllers and views separately, you can try to use a Rails scaffold.
It generates a model, database migration for that model, a controller and views, as well as a basic suite for each of these:
rails generate scaffold paper title:string venue:string year:integer
Take a look at the generated files.
Otherwise, start by creating a paper controller and appropriate views.
Error
Got NameError: undefined local variable or method `new_paper_path' for #
Did you mean? new_author_path
Scenario
When a user visits the new paper page Then the page should render
Hints
A paper management system needs more than just authors. It also needs papers. Papers should have a title and a venue string as well as an year integer that indicates when the paper was published. Other than that, they should also be manageable by users using views similar to authors.
Instead of generating the paper model and the needed controllers and views separately, you can try to use a Rails
scaffold
. It generates a model, database migration for that model, a controller and views, as well as a basic suite for each of these:rails generate scaffold paper title:string venue:string year:integer
Take a look at the generated files.Otherwise, start by creating a paper controller and appropriate views.
Error
Estimated progress: 59% complete