Taxonomies undefined method error

Can anyone help me here?
This is my controller does anyone know what needs to be fixed here?
Your error say: undefined method each for nil:Class and can be fixed with each.to_a to avoid that specific error.
Would you happen to know how that file get updated so it takes the error off? I have changed the file but its not updating when i run rails server
Your file indicates that the error comes from spree_frontend, and due to that you use 2-1-stable branch you should be able to find similar (old) issues by searching stackoverflow or main Spree repository.