```ruby
class StopsController < ApplicationController
  def index
    @stops = Stop.all
    render json: @stops
  end

end



```

Update stops controller to return JSON
user
```ruby
class StopsController < ApplicationController
  def index
    #@stops = Stop.near(params[:location])
    @stops = Stop.near([37.464763, -122.197985])
    render json: @stops
  end

end



```
assistant