if you need to define a method within a controller which is not an action but you are gonna use it on that controller please add identifier like private or protected one time before those methods or move them to the helper classes.