I have this in my config/routes.rb

```
  resources :my_objects

```

and I have app/controllers/my\_objects\_controller.rb

```
  def edit
    respond_to do |format|
      @my_object = MyObject.find(params[:id])
      format.json {
        render :json => @my_object
      }
    end
  end

```

But I get a 404 from my JQuery when I attempt to contact this URL (via GET) using

```
http://localhost:3000/my_objects/edit/8 

```

I have also tried

```
http://localhost:3000/my_objects/edit?id=8

```

got still get a 404. What is the right URL I need to use to get data from my edit link?