title: Grails g:select setting selectedIndex
body: <p>How do you set the selectedIndex on a &lt;g:select&gt; tag with a value from the list? I have a page that allows you to add a record. the page then goes to a view containing a g:select and i want the g:select to default to that item i just inserted into the database.</p>
  
  <p>I tried passing the new object in the flash but i can't figure out how to get it's index in the list being used to generate the g:select data.</p>