Hi could someone please put me right. I am not having any success at
accessing my model from a controller.Please look at the code:
class Region < ActiveRecord::Base
@region = Region.get_region_code(@region_name)
When I try to access the contents of @region
It blows up with:
NoMethodError in Admin supplierController#update
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.region
Thankyou very much.