# Inserting parent record's details into new page

**URL:** <https://www.ruby-forum.com/t/inserting-parent-records-details-into-new-page/110333>\
**Category:** Rails\
**Created:** [July 25, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/inserting-parent-records-details-into-new-page/110333 "2007-07-25T12:50:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanouk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/da6949/32.png) [@nanouk](https://www.ruby-forum.com/u/nanouk)\
**Post date:** [July 25, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/inserting-parent-records-details-into-new-page/110333/1 "2007-07-25T12:50:31Z")

</div>

I have a list of steps.

My step controller has the following method:

def display\_stepinfo  
@step = Step.find(params[:id])  
@metrics = @step.step\_metrics  
end

Upon clicking a step, its metrics are displayed on a new page. On this  
page I would also like to display a step field (step.name) of the step  
that was previously selected.

Can anyone help me figuring out how to insert such a field?
