BlogsController#index is missing a template for request formats: text/html

Hi Everyone

When try to generate a scaffold name Blog and try to hit the /blogs context root URL getting error stating like below , this is basic am trying to do (performed rails db:migrate)still getting the error. Is there any change or update in the version of ruby that this is expected?

No view template for interactive request

BlogsController#index is missing a template for request formats: text/html

NOTE: Rails usually expects a controller action to render a view template with the same name.

For example, a BlogsController#index action defined in app/controllers/blogs_controller.rb should have a corresponding view template in a file named app/views/blogs/index.html.erb.

However, if this controller is an API endpoint responding with 204 (No Content), which does not require a view template because it doesn’t serve an HTML response, then this error will occur when trying to access it with a browser. In this particular scenario, you can ignore this error.

You can find more about view template rendering conventions in the Rails Guides on Layouts and Rendering in Rails.