M
M
Max2016-04-15 12:51:44
Ruby on Rails
Max, 2016-04-15 12:51:44

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

1 answer(s)
E
Eugene Burmakin, 2016-04-15
@maxprof

FilmSession

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question