json.array!(@pos_configs) do |pos_config| json.extract! pos_config, :id json.url pos_config_url(pos_config, format: :json) end