Method: Integral::Backend::BaseController#index
- Defined in:
- app/controllers/integral/backend/base_controller.rb
#index ⇒ Object
GET / Lists all resources
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'app/controllers/integral/backend/base_controller.rb', line 31 def index respond_to do |format| format.html do set_grid end format.json do if params[:gridview].present? set_grid render json: { content: render_to_string(partial: "integral/backend/#{controller_name}/grid", locals: { grid: @grid }) } else respond_to_record_selector end end end end |