I get the following error when I goto the privilege page.
NoMethodError in Employee#edit_privilege
Showing app/views/employee/edit_privilege.html.erb where line #82
You have a nil object when you didn’t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.
Extracted source (around line #82):
The development log is below:
Processing EmployeeController#edit_privilege (for 127.0.0.1 at
ActionView::TemplateError (You have a nil object when you didn’t expect