# Merging controller methods?

**URL:** <https://www.ruby-forum.com/t/merging-controller-methods/105456>\
**Category:** Rails\
**Created:** [May 30, 2007, 5:33am UTC](https://www.ruby-forum.com/t/merging-controller-methods/105456 "2007-05-30T05:33:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luke](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/7ab992/32.png) [@luke](https://www.ruby-forum.com/u/luke)\
**Post date:** [May 30, 2007, 5:33am UTC](https://www.ruby-forum.com/t/merging-controller-methods/105456/1 "2007-05-30T05:33:16Z")

</div>

Hi,

in application.rb is

def index  
get\_panel  
render :partial =\> ‘panel’  
end

in another\_controller.rb i have

def index  
@array = %w{‘array’, ‘elements’}  
end

i want the array to be available to the view, but also want the same  
method calls as is in application.rb. can i ‘merge’ the two index()  
methods?
