Answer the question
In order to leave comments, you need to log in
How to refer to a model in Rails?
Hello, there are models user.rb, cinema.rb, film_session.rb
In the console, when you enter Place.last, everything works, when you enter User.last, everything works.
But when entering Film_session.last - error Unable to autoload constant Film_session
Film_sessions.last - error uninitialized constant Film_sessions.
I know that this is an entry-level question, but I can’t understand what prevents me from reaching the model.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question