#list in generated controllers

Line #2 calls the list action so the code in that is run, setting up list variables etc. Line #3 renders the view from the list action, so the index action looks like the list action.