Skip to content

Steps to create a simple CRUD

hidekimatsumoto edited this page Oct 22, 2014 · 2 revisions

Assuming you have an existing model, you need to do the following steps to build a simple CRUD

  • Include Carnival::ModelHelper to model
  • Define Controller to your model inherting from Carnival::BaseAdminController
  • Define layout "carnival/admin" in your controller
  • Implement the method permited_params in your controller(for more info check this)
  • Define a resource route to your controller, for example resources :users
  • Define your presenter.
Clone this wiki locally