I\'m new to rails and ruby. I was studying the concept of class and instance variables. I understood the difference but when I tried it out using the controller in rails it got
The scope of Instance variables are from action to view they initiate when any action occurs and destroy when action ends.