I just create a new rails project and try to add new page. i write rails g controller main index, and its create only controller. I try to add in view a new folder named "main" and create file "index.html.erb", but when i try to see my page it just return nothing, a white page without html code
this is my main_controller.rb
class MainController < ApplicationController def index end end
this is my index.html.erb
<p>hello</p>
and this is my routes.rb
Rails.application.routes.draw do root 'home#index' end