def add_resource_route( method, url, controller_action )
      #resource = get_resource_name( url )
      resource = controller_action.split('#').first
      info =  {
        resource: resource,
        action: controller_action.split('#').last,
        method: method,
        url: url ,
        controller: controller_action.split('#').first
      }

      @resources_routes[resource.to_sym] ||= []
      @resources_routes[resource.to_sym].push( info )
    end
def add_resource_route( method, url, controller_action )
      #resource = get_resource_name( url )
      resource = controller_action.split('#').first
      info =  {
        resource: resource,
        action: controller_action.split('#').last,
        method: method,
        url: url ,
        controller: controller_action.split('#').first
      }

      @resources_routes[resource.to_sym] ||= []
      @resources_routes[resource.to_sym].push( info )
    end
Add new route info to resource routes array with correct format