lib/cycle.js
function(obj) {
      if (typeof obj.controller === 'undefined' || typeof obj.action === 'undefined') {
        var error = new Error('You must define a controller and action to redirect to.').stack;
        throw error;
      }

      return '/' + obj.controller + '/' + obj.action;
    }
function(obj) {
      if (typeof obj.controller === 'undefined' || typeof obj.action === 'undefined') {
        var error = new Error('You must define a controller and action to redirect to.').stack;
        throw error;
      }

      return '/' + obj.controller + '/' + obj.action;
    }
function ( obj ) { if ( typeof obj . controller === 'undefined' || typeof obj . action === 'undefined' ) { var error = new Error ( 'You must define a controller and action to redirect to.' ) . stack ; throw error ; } return '/' + obj . controller + '/' + obj . action ; }
returns the relative path from an object, the object is
expected to look like the following

example:
{
controller: 'foo',
action: 'bar'
}

@param  {Object} obj the redirect object
@return {String}     the relative path
@api private
returns the relative path from an object the object is expected to look like the following