Sha256: 3c4e9542b781f54aaf60698697dde7bf2df291e2181978341b59179df28387d8

Contents?: true

Size: 288 Bytes

Versions: 1

Compression:

Stored size: 288 Bytes

Contents

class Admin::CitiesController < AjaxController

  self.nesting = :admin, Country

  self.search_columns = :name, 'countries.name'
  
  def show
    respond_to do |format|
      format.html { redirect_to_index flash.to_hash }
      format.json  { render :json => entry }
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dry_crud-1.5.0 test/templates/app/controllers/admin/cities_controller.rb