I have an index action that shows a list of data.
def index # go get data, # setup some instance vars # render view - display data in table end URL: /orders/
I would like to have another action that sets up a few instance vars and
then calls the index action, which then takes over from there and goes
and gets data, displays the data in a table.
archive > sets up vars > runs index action code > renders index
I was assuming that I could just do:
def archive #setup instance vars render :action => "index" end URL: /orders/;archive
But this just renders the index actions view, and doesn’t actually
execute the index action code.
Just wondering if it’s possible to have an action do a bit of setup,
then hand things over to another action?