I need to do options for categories in view
in controller i have action
@categories = Category.find(:all)
new_to_do template contains
I get error : You have a nil object when you didn’t expect it!
The error occurred while evaluating nil.category_id
So i have 3 tables categories, items, notes
Items belongs to category and note, so I have add those to the model
of item. Do i have to add category model has_many Items call also?
I appreciate that if sombody could help.