- resource = (@_effective_resource || Effective::Resource.new(controller_path)) .row .col-12 .card .card-header %h3.card-title= @page_title .card-tools = resource_form_actions(resource.klass, for_action: :index) .card-body - if @datatable = render_datatable(@datatable) - elsif instance_variable_get('@' + resource.plural_name).respond_to?(:to_partial_path) = render instance_variable_get('@' + resource.plural_name) - elsif instance_variable_get('@' + resource.name).respond_to?(:to_partial_path) = render instance_variable_get('@' + resource.name) - elsif Rails.env.development? %p effective_resources index view is not sure what to render. %p Define an @datatable, @#{resource.try(:plural_name) || 'a plural'}, or @#{resource.try(:name) || 'a singular'}. %p or include Effective::CrudController in your controller -# .card-footer