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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---