In a small sauté pan, over medium heat, heat the olive oil.
Add the red onion and garlic; sauté for only a couple of minutes until the onions are softened but not browned.
Remove from heat; to a large bowl, add the onion and garlic mixture, along with the remaining ingredients; mix thoroughly to combine; if the mixture seems too wet, add a couple of additional tablespoons of flour to help bind it together.
Form into 12 balls; roll in the flour and flatten into potato cakes about 1-inch thick; wetting your hands to roll the potato into balls is recommended, especially if the potatoes are particularly sticky.
In a cast iron skillet, over medium heat, heat a quarter inch of canola oil.
Place the potato cakes in the iron skillet and fry for a few minutes on each side until golden brown.
Remove from the skillet and drain on paper towels before serving.