O'Reilly logo

Jump Start Rails by Andy Hawthorne

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required