Merging controller methods?

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?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs