Rails Posts and Pages error

Dear forum members.
I am learning new rails and my source is here.
But director pages and posts in about.html.erb and index.html.erb file don’t start and error.I’ll share a visual and the route.rb file to help.
Error and routes.rb:


pages_controller.rb:

class PagesController < ApplicationController
	def about

	end
end
     

posts_controller.rb:

class PostsController < ApplicationController
	def index

	end
end

Note:
pages and posts error is are the same.
Thanks in advance and ı speak sorry bad english.

Did you try to run following command

npm install

and actually error in webpack your code is fine, may be you have setup something in your manifest files.

1 Like