Sunday, 26 August 2012

generating active admin controller

Hi,

Active admin provides a good admin interface. Inorder to generate a controller in active admin you need to run the below command

> rails g active_admin:resource User

The actual notation that should be used for active for a model is 'resource'. By running the above command you will create a resource for user class.

We need to refer the active admin classes as resource for model class.

Thank You,
Uma Mahesh.

No comments:

Post a Comment