RoR issue in browser stats app, can’t create record due to field missing

Resolved.
Page for update to db table for 'operating_systems' not working, could not figure it out initially as the model, view and controller are all similar to the code used for browser_version. Finally realized that the database itself (and of course rails trying to adjust dynamically, but the view lacking such a named field) had somehow gained an additional NN field for 'os_sources_id' (sources-plural) in addition to the existing 'os_source_id' field(source-singular):eek: Just one letter difference and kinda hard-to-spot! Made the error message quite misleading!

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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