# Passing parameters to a view and render in inline iframe on the same page

**URL:** <https://www.ruby-forum.com/t/passing-parameters-to-a-view-and-render-in-inline-iframe-on-the-same-page/185406>\
**Category:** Rails\
**Created:** [March 19, 2010, 11:15am UTC](https://www.ruby-forum.com/t/passing-parameters-to-a-view-and-render-in-inline-iframe-on-the-same-page/185406 "2010-03-19T11:15:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e0b2c6/32.png) [@shiran](https://www.ruby-forum.com/u/shiran)\
**Post date:** [March 19, 2010, 11:15am UTC](https://www.ruby-forum.com/t/passing-parameters-to-a-view-and-render-in-inline-iframe-on-the-same-page/185406/1 "2010-03-19T11:15:17Z")

</div>

Hi,

I’m developing a rails app and need to do the following.

My main page (main.html.erb) has a small form and a submit button.  
Also it has an inline iframe.

When click the submit button I need to pass some parameters to another  
content page (content.html.erb) to create dynamic contents and load  
the content page inside main page’s inline iframe.

(What a user sees is only the main page and iframe content changes on  
submit button click)

How can I do with this Rails? I tried several ways and sometimes even  
my browser crashed. Thanks for your comments in advance.

Shiran
