Skip to content

Instantly share code, notes, and snippets.

@vic
Created February 9, 2011 19:42
Show Gist options
  • Select an option

  • Save vic/819123 to your computer and use it in GitHub Desktop.

Select an option

Save vic/819123 to your computer and use it in GitHub Desktop.
// asi se mandaria llamar un filtro para carreteras
// que filtre por estado.id,
$.ajax({
url: "/filtros/carreteras", // Esta action estaria en el FiltrosController
type: 'POST',
dataType: 'json',
contentType: 'application/json',
data: JSON.stringify({
filters: [
{ 'estado.id': '77' },
{ 'otraRelacionDeCarretera.id', 99 }
]
}),
success: function(data) {
console.debug("OBTUVE LAS SIG CARRETERAS", data);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment