uninitialized constant

28,794

Somewhere in the files processed for your action you have tried to use a class called Posts. Try using Post instead of Posts. There is no Posts class. You are probably looking for the Post model class.

Look for the mistake in either in the index method of posts_controller.rb or in app/views/posts/index.html.erb. The error message should help you find the offending line.

Share:
28,794
Lilz
Author by

Lilz

Updated on June 02, 2020

Comments