a nicer way to do it is to specify at the top of the controller:
```respond_to :json, :only => :index```

And then in the index method you simply write:
```respond_with School.from_area(params[:area])```