December 2023
Intermediate to advanced
237 pages
7h 50m
English
In this chapter, we will add our first two Rails ActiveRecord models into our blog application. We will start with simple User and Page models and proceed to grow them, adding more functionality as we go along.
Ruby on Rails is overflowing with code generators. Rails code generators create lots of code for us when we run them. We can use the rails generate command, for example, to quickly generate a fully namespaced model or a controller with actions and views stubbed and ready for additional development. And since we already have RSpec and FactoryBot installed, we will get appropriately ...
Read now
Unlock full access