# Link\_to popup pass parameter

**URL:** <https://www.ruby-forum.com/t/link-to-popup-pass-parameter/182033>\
**Category:** Rails\
**Created:** [January 21, 2010, 9:50pm UTC](https://www.ruby-forum.com/t/link-to-popup-pass-parameter/182033 "2010-01-21T21:50:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomtt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e47c2d/32.png) [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Post date:** [January 21, 2010, 9:50pm UTC](https://www.ruby-forum.com/t/link-to-popup-pass-parameter/182033/1 "2010-01-21T21:50:18Z")

</div>

hi, im poping up a window with:

\<%= link\_to(“Add new Item”, “/bol\_lines/new”, :popup =\> [‘window\_name’,  
‘width=600,height=600’]) %\>

now, that link resides in teh edit view of the parent of the 1\<\>N  
asscoation. the child window is supposed to be the NEW view of the  
child-association. but to submit the new view containting the  
bol\_lines form i need to have the parent\_id as hidden field or  
similar…  
how can i achieve that?

thx
