Yes, like in most languages you can call a method from another method.
You have to be careful about access control though. Have a look at
‘public’, ‘private’, ‘protected’ function calls used to control
access to your methods from outside the controller. There is a short
description in section 7.8 of http://www.rubycentral.com/faq/
class MyController < ApplicationController
# Add whatever you want to your array here