So it seems that more and more people are suggesting that it is a bad idea to actually use instance variables in controller. That you should just send the variable with render into the view.
But when I do it like this for instance:
def index
users = User.all
render 'index', users: users
end
Then I am unable to use the :users symbol in the index view and iterate over it for instance.
It will throw an error: undefined methodeach' for :users:Symbol` for me.
Is it even a good idea to try to do so? I thought I would give it a try and see how it will work out. But right now I cannot even get it to work...