In this lesson, we are going to create a Post model using the resource generator. We are using the resource generator as it will create all the files we need for our model, unlike a a scaffold that would create a ton of files, some of which we may not even need.
In this section we're going to build out the index view for our posts using BDD. To start with, I'm going to create a file called post_spec.rb inside the spec/features directory for our integration tests.
This is going to be a fun episode. In this guide we're going to leverage the Rails seeds file to generate sample data for the application. To start, open up the db/seeds.rb file.
In this guide, we are going to implement the ability to create new posts and we're going to use BDD to build out the feature.
Now that our code is working fine, it's time to ensure that it follows Rails best practices.
In this guide we're going to implement a connection between two models in Rails and we're going to use TDD to build the feature.
devCamp does not support ancient browsers.
Install a modern version for best experience.