Rails 5.1: “unknown firstpos: NilClass” – Issue reloading application

I just faced exactly the same problem. I sovled it by setting:

config/environments/development.rb

from:

# Do not eager load code on boot.
config.eager_load = true

to:

**# Do not eager load code on boot.
config.eager_load = false

Hope this helps!
Cheers, Nic.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)