Skip to content

Instantly share code, notes, and snippets.

@drale2k
Created January 24, 2012 18:56
Show Gist options
  • Save drale2k/1671875 to your computer and use it in GitHub Desktop.
Save drale2k/1671875 to your computer and use it in GitHub Desktop.
def index
@locations = Location.all
respond_with @locations.as_json(
:except => [:id, :created_at],
:include => {
:bounds => {
:only => [:lat, :lng]
},
:media => {
:only => [:kind, :url]
}
}
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment