i don't know the way to share private controller's methods in rails. I could put it in application controller in protected, but i thought that it would be ulgly