<p>Grails scaffolding defaults to 10 rows per page.  I would like to increase that number without generating the views and changing the 10 in every file.  Where do I change the default?</p>

[{'answer_id': 58239, 'author': 'codeLes', 'author_id': 3030, 'author_profile': 'https://Stackoverflow.com/users/3030', 'pm_score': 1, 'selected': False, 'text': '<p>I found this but can\'t get it to work.  You\'re supposed to be able (according to <a href="http://www.nabble.com/Dynamic-scaffolding-Controller-using-edited-template-td13468221.html" rel="nofollow noreferrer">this</a>) to scaffold and then override the actions you want (say list) in your controller, but like I said, it doesn\'t work for me...</p>\n\n<pre><code>class PersonController {\n  def scaffold = true\n\n  def list = {\n    if(!params.max) params.max = 20\n    [ personList: Person.list( params ) ]\n  }\n}\n</code></pre>\n'}, {'answer_id': 62075, 'author': 'dahernan', 'author_id': 6435, 'author_profile': 'https://Stackoverflow.com/users/6435', 'pm_score': 3, 'selected': True, 'text': '<p>You have to install scaffold templates with:</p>\n\n<p>grails install-templates</p>\n\n<p>Now, edit in src/templates/scaffolding Controller.groovy and increase the value params.max as you want</p>\n'}, {'answer_id': 71182, 'author': 'dahernan', 'author_id': 6435, 'author_profile': 'https://Stackoverflow.com/users/6435', 'pm_score': 1, 'selected': False, 'text': '<p>Ok, if you use dynamic scaffolding a workaround for this bug, is edit directly in your GRAILS_HOME/src/grails/templates/scaffolding</p>\n'}, {'answer_id': 22386190, 'author': 'Juan Giménez', 'author_id': 1370706, 'author_profile': 'https://Stackoverflow.com/users/1370706', 'pm_score': 0, 'selected': False, 'text': '<p>Add to the uri:</p>\n\n<pre><code>?max=&lt;num_rows_desired&gt;\n</code></pre>\n\n<p>For instance:</p>\n\n<pre><code>http://projecthost:8080/Library/Books/list?max=20\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/57910', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']