I have a form. Everything submits into the database if I don’t have any
validation rules. When I put these rules:
validates_uniqueness_of :title, :message => “already exists in
I get this error (which seems weird because I am not validating against
You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.each
Extracted source (around line #18):
18: <% for @focus in @focuses %>
19: <%= @focus.name %>
20: <% end %>
Web Resources Coordinator
Kentucky Academy of Technology Education
Murray State University