Trying to understand rails/ember structure of discourse

I am a new developer in general (just learning rails) and trying to extend the forum. I was wondering if there were any tutorials on getting started and understanding how the front end (ember) worked with the backend (rails)

One basic thing I tried and got an unexpected response:

On Rails I updated the routes file to add
get "/feed" => "feed#index"

Then I added the following controller:

  def index
    render json: {status: "lets get this going"}
  end
end```

Then when I checked on postman for "http://localhost:3000/feed". I would have expected a JSON response but got an HTML response without any of my text there.

Thanks!

Add .json to your request address?

4 Likes

thank you! Shows you how new I am to development.

2 Likes