Moves the paginate setting to the controller. Adds ending line to index.html.erb