Sha256: b2a17ea75f4f99600ad2ded68c61cfca2e051b8b843cdbb03e7cbe331e6d33e6
Contents?: true
Size: 956 Bytes
Versions: 2
Compression:
Stored size: 956 Bytes
Contents
- resource = (@_effective_resource || Effective::Resource.new(controller_path)) .row .col-12 .card .card-header %h1= @page_title .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 = render_resource_buttons(resource.klass, (action ||= :index) => false)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
five-two-nw-olivander-0.1.2.2 | app/views/application/index.html.haml |
five-two-nw-olivander-0.1.2.1 | app/views/application/index.html.haml |