Please sign in to comment.
Add columns to blog posts
We create a new migration to add the title and body column to the blog posts table. Inner green; outer red: The action 'create' could not be found for BlogPostsController With this, the model test passes, so we step back up to the acceptance test level and rerun it. The acceptance test moves on to the next error: the form is rendered, the fields are populated, it submits the form, but Rails doesn't find a `create` action on the controller to submit it to.
- Loading branch information...
Showing with 8 additions and 0 deletions.
|@@ -0,0 +1,6 @@|
|class AddTitleAndBodyToBlogPosts < ActiveRecord::Migration[5.1]|
|add_column :blog_posts, :title, :string, null: false|
|add_column :blog_posts, :body, :text, null: false|