When a controller action is rendered, Rails will attempt to find a matching layout and view based on the name of the controller.
Views and layouts are placed in the
Given a request to the
PeopleController#index action, Rails will search for:
applicationif no match is found)
index_new.html.erbyou have to write code for that in
render 'index_new', layout: 'your_layout_name'