RoR errors, various

All Resolved.

Countless "You have a nil object when you didn't expect it!
The error occurred while evaluating nil.priv_level"
– These were usually not code, but because of child record deletes in database during testing (referential integrity).

Error: "NoMethodError in Percentage statisticsController#create",
"undefined method `updated_by_user_id=' for #<PercentageStatistic:0xb68befdc>"
– was actually because temporary setting of field name used incorrect name.

Rails app & all page fetches not working at all!
./script/../config/../vendor/rails/railties/lib/initializer.rb:500:in `initialize_time_zone': Value assigned to config.time_zone not recognized.
when running script/server.
Had changed time zone in config/environments.rb file from 'UTC' to EST' but this did NOT work.
Commented out line altogether. This set time to EST and shows time zone as EDT (Eastern Dalight Time) – maybe would have worked too.
8/17/2020 – Updated tried EST, EDT and 'Eastern Time (US & Canada)' as shown in rake -T time but none worked, however commenting out as comment in code shows works and time displays immediately become local (EDT for me).
Anyway this works for me in Massachsuetts!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s