When will an instance of a controller be created?

Viewed 1122

I'm learning Ruby on Rails currently and I'm wondering when an instance of a controller class is created. An instance for each action request? Or one instance that is shared between one client's requests?

I can see there are instance variables in the controller class and they are shared with the view, so I think that a controller instance is created on each action request. Am I right?

1 Answers
Related