title: Dynamic route creation in cfwheels?
body: <p>from a little knowledge of chwheels i have, i know that routes are stored in the application scope i.e. in application.wheels.routes to be precise. It also maintains the route position in application.wheels.namedroutepositions.</p>
  
  <p>Now i have added route i.e. controller,action,pattern,name in application.wheels.routes and also added in the namedRoutePositions structure. as follows:</p>
  
  <pre><code>&lt;cfset myRoute.controller = 'pages' &gt;
  &lt;cfset myRoute.action = 'about' &gt;
  &lt;cfset myRoute.pattern = 'about_my_project' &gt;
  &lt;cfset myRoute.name = 'about' &gt;
  
  &lt;cfset structAppend(application.wheels.routes[3],myRoute) /&gt;
  &lt;cfset structInsert(application.wheels.namedroutepositions,'about','3',true)/&gt;
  </code></pre>
  
  <p>the above code is added to settings.cfc which i invoked on the application start.
  If i dumped the application.wheels.routes and application.wheels.namedroutepositions in settings.cfc after adding the above code, it is reflected in those respective structures but when i tried to access the the new route i just added, it doesn't work.
  Also, when i dumped the application.wheels.routes and application.wheels.namedroutepositions in another cfc, it didn't showed the newly added route i.e. the newly added route didn't persist. how to make newly added route to persist throughout the application?
  I am not sure what went wrong. Is there any other variable/structure where i need to update route information? Is there anything else i need to do to make this work?</p>
  
  <p>Note: for time being, i have added this route manually. When this experiment become successfull, i will make this code to add route dynamically.</p>
  
  <p>Thanks for all help in advance.</p>