I'm trying to do this tutorial-> http://netbeans.org/kb/docs/ruby/rapid-ruby-weblog.html
BUT
its giving me this error:
NameError in PostsController#index
uninitialized constant PostsController::Posts
I don't know whats wrong
I'm trying to do this tutorial-> http://netbeans.org/kb/docs/ruby/rapid-ruby-weblog.html
BUT
its giving me this error:
NameError in PostsController#index
uninitialized constant PostsController::Posts
I don't know whats wrong
Copyright © 2021 Jogjafile Inc.
Somewhere in the files processed for your action you have tried to use a class called
Posts
. Try usingPost
instead ofPosts
. 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 inapp/views/posts/index.html.erb
. The error message should help you find the offending line.