def create_link_to(block, url, remote, method = nil, confirm = nil)
      if remote
        return link_to(block, url, :method => method, :confirm => confirm, :remote => true)
      end
      link_to(block, url, :method => method, :confirm => confirm)
    end
def create_link_to(block, url, remote, method = nil, confirm = nil)
      if remote
        return link_to(block, url, :method => method, :confirm => confirm, :remote => true)
      end
      link_to(block, url, :method => method, :confirm => confirm)
    end
Create the link based on object
 Set an ajax link if option link_remote is set to true