I would use a rails route path for this.