Model Issue with validation clause

Resolved.
NoMethodError in Percentage_statistics#update

Showing app/views/percentage_statistics/edit.html.erb where line #7 raised:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.map

error in percentage_statistics_controller.rb:80:in `update'

This is definitely one of the tougher errors, when something is invalid in a model you can hunt forever in the controller and not find it!

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