Update action | NoMethodError | nil.to_sym

Ok, totally no reason why I’m getting an error in this model update
and no other. HELP!

CONTROLLER:

GET /employees/1/edit

def edit
@employee = Employees.find(params[:id])

end

VIEW:

Edit Employee

<%= error_messages_for :employees %>

<% form_for(@employee) do |f| %>

ROUTES:

map.resources :employees

All pretty standard stuff - what’s going on?

ERROR:

NoMethodError in Employees#edit

Showing employees/edit.html.erb where line #5 raised:

You have a nil object when you didn’t expect it!
The error occurred while evaluating nil.to_sym

Extracted source (around line #5):

2:


3: <%= error_messages_for :employees %>
4:
5: <% form_for(@employee) do |f| %>
6:
Email: <%= f.text_field :email %> (required, will be login to intranet)

7:
8:
Email:

Thanks so much in advance!