# How to open scaffold show, edit, new etc in iframe

**URL:** <https://www.ruby-forum.com/t/how-to-open-scaffold-show-edit-new-etc-in-iframe/90811>\
**Category:** Rails\
**Created:** [April 2, 2007, 12:26am UTC](https://www.ruby-forum.com/t/how-to-open-scaffold-show-edit-new-etc-in-iframe/90811 "2007-04-02T00:26:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![opoudel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85e7bf/32.png) [@opoudel](https://www.ruby-forum.com/u/opoudel)\
**Post date:** [April 2, 2007, 12:26am UTC](https://www.ruby-forum.com/t/how-to-open-scaffold-show-edit-new-etc-in-iframe/90811/1 "2007-04-02T00:26:16Z")

</div>

I am new in rails, trying to open scaffold create new, show, edit etc in  
the iframe on the same page.

can anyone tell let me know how to do that.

Thanks a bunch.

op

---

<div class="post-metadata">

**Author:** ![opoudel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85e7bf/32.png) [@opoudel](https://www.ruby-forum.com/u/opoudel)\
**Post date:** [April 2, 2007, 1:02am UTC](https://www.ruby-forum.com/t/how-to-open-scaffold-show-edit-new-etc-in-iframe/90811/2 "2007-04-02T01:02:43Z")

</div>

Hi Omkar, please provide the code snippet that you’re trying to use so  
that we can better assist you.

-Conrad

---

<div class="post-metadata">

**Author:** ![opoudel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85e7bf/32.png) [@opoudel](https://www.ruby-forum.com/u/opoudel)\
**Post date:** [April 2, 2007, 1:19am UTC](https://www.ruby-forum.com/t/how-to-open-scaffold-show-edit-new-etc-in-iframe/90811/3 "2007-04-02T01:19:27Z")

</div>

Following is the code from the list.rmtml. I am trying to redirect  
link\_to ‘Show’, ‘Edit’ to iframe which is at the bottom of the  
list.rhtml as shown below

# =============================================================================== start of list.rmthl
 Template Manager \<% for column in tmplt.content\_columns %\> \<% end %\> 

\<% for tmplt in @tmplts %\>

 \<% for column in tmplt.content\_columns %\> \<% end %\> \<% end %\>

| Template(s) |
| --- |
| \<%=h tmplt.send(column.name) %\> | \<%= link\_to 'Show', {:action =\> 'show', :id =\> tmplt} %\> | \<%= link\_to 'Edit', :action =\> 'edit', :id =\> tmplt %\> | \<%= link\_to 'Destroy', { :action =\> 'destroy', :id =\> tmplt }, :confirm =\> 'Are you sure?', :method =\> :post %\> |

\<%= link\_to ‘Previous page’, { :page =\> @tmplt\_pages.current.previous }  
if @tmplt\_pages.current.previous %\>  
\<%= link\_to ‘Next page’, { :page =\> @tmplt\_pages.current.next } if  
@tmplt\_pages.current.next %\>

  

\<%= link\_to 'Create New Template', :action =\> 'new' %\>
=============================================================================== eof list.rhtml ===============================================================================

---

<div class="post-metadata">

**Author:** ![opoudel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85e7bf/32.png) [@opoudel](https://www.ruby-forum.com/u/opoudel)\
**Post date:** [April 2, 2007, 2:03am UTC](https://www.ruby-forum.com/t/how-to-open-scaffold-show-edit-new-etc-in-iframe/90811/4 "2007-04-02T02:03:47Z")

</div>

Hi, the following site should be helpful to you:

> **[In-place file upload with Ruby on Rails | Dmytro Shteflyuk's Home](https://kpumuk.info/ruby-on-rails/in-place-file-upload-with-ruby-on-rails/)**
>
> My friends often asked me how to upload file using AJAX, and usually they got answer "in no way". Correct answer, but what if I need to upload file without full page reloading? And, of course, I want to use RJS in this case. Here I'll explain what to...

Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![opoudel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85e7bf/32.png) [@opoudel](https://www.ruby-forum.com/u/opoudel)\
**Post date:** [April 3, 2007, 2:32am UTC](https://www.ruby-forum.com/t/how-to-open-scaffold-show-edit-new-etc-in-iframe/90811/5 "2007-04-03T02:32:06Z")

</div>

Thanks Conrad,

I tried the way it is mentioned in the site but could not succeed.  
Probably i am missing something, i will keep on hunthing.

If you guys find any other implementation in that area, let me know

Cheers  
–Omkar
