Can give me a ruler for me? The words 'for me' are not necessary.
Can you give a ruler for me? This means something different. It sounds as though you want someone to give someone else a ruler on your behalf. In other words, it is not you who wants a ruler.