Chapter 4Creating an ActiveAdmin Resource

We're now nicely set up to begin working with ActiveAdmin to create resources. As explained in the previous chapter we are using ActiveAdmin to create the back-end administration for our app, instead of writing the Rails code ourselves.

Before we get into ActiveAdmin, though, it's worth taking a quick look at what would be involved in creating the elements ourselves by utilizing the application controllers.

Creating Admin Functionality Manually

You can return to your training app to try out writing Rails code to develop admin resources. You'll need to add a pages resource as we did in Chapter 3.

So, at this stage we've got a PageController called pages_controller, and it contains two empty actions:

Get Jump Start Rails now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.