       action: ->
         # Prevent re-rendering things outside the {{> yield}} by providing the data here.
         @render formName, data: -> Setter.merge({}, args.data, args.createData)
-    
+
     Router.route editRoute,
       # Reuse the createRoute for editing.
       path: '/' + collectionId + '/:_id/edit', controller: controller, template: formName,

            Setter.merge({doc: collection.findOne(_id: @params._id)}, args.data, args.editData)

  getBaseController: -> BaseController


    editRoute = args.editRoute ? singularName + 'Edit'
    formName = args.formName ? singularName + 'Form'
    Logger.debug('CRUD Routes', createRoute, editRoute, formName)

    # Avoid creating a duplicate route for the collection if one already exists.
    unless Router.routes[collectionId]?
      Router.route collectionId,
