- Add ActiveAdmin to the song library to manage artists and songs.
- Customize ActiveAdmin to disallow deleting artists.
- Remove routes to prevent non-admins from creating and editing artists and songs.
In this lab, we're going to use ActiveAdmin to add administrative features to the song library so that we can control access and prevent non-admins from adding and editing songs and artists.
The basic app has been set up with Devise as a starting point.
- Install and configure ActiveAdmin with the default AdminUser.
- Configure ActiveAdmin to allow full management of songs, and allow
everything except
delete
for artists. Hint: Also make sure you remove any defunctlink_to
s from your views. - Remove the ability to create, destroy, and edit songs and artists outside of ActiveAdmin
- Make sure tests pass!