Please sign in to comment.
Add fields and submit button to form template
This is another case where all we needed to add to get the test to pass was the title field. But this is a reasonable case where you know what the form will consist of, so you can go ahead and create it all. Plus, your tests will never drive out the full markup of your templates, so you'll need to do that by hand anyway. Red: First argument in form cannot contain nil or be empty <%= form_for @blog_post do |f| %> In other words, @blog_post is nil but needs to be a model.
- Loading branch information...