I confess to being a newbie.
Here is the controller code, and I know there to be product_types that
are related to the photographer.
photographer = Photographer.find_by_id( session[:photographer_id] )
@productTypes = photographer.product_types
And in the view…
<% for product_type in @product_types %>
Gives me error:
You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each