Uninitialized constant

I am trying to make this tutorial-> http://netbeans.org/kb/docs/ruby/rapid-ruby-weblog.html

BUT

he gives me this error:

NameError in PostsController index #

uninitialized constant PostsController :: Posts

I do not know what is wrong.

+3
source share
1 answer

Somewhere in the files processed for your action, you tried to use a class called Posts. Try using Postinstead Posts. The message class is missing. You are probably looking for a Post model class.

posts_controller.rb app/views/posts/index.html.erb. .

+11

Source: https://habr.com/ru/post/1723617/


All Articles