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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Conrad Taylor
2007-Apr-01 23:01 UTC
Re: How to open scaffold show, edit, new etc in iframe
Hi Omkar, please provide the code snippet that you''re trying to use so that we can better assist you. -Conrad On 4/1/07, Omkar Poudel <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 ==============================================================================<table> <caption> Template Manager </caption> <tr> <% for column in tmplt.content_columns %> <th>Template(s)</th> <% end %> </tr> <% for tmplt in @tmplts %> <tr> <% for column in tmplt.content_columns %> <td><%=h tmplt.send(column.name) %></td> <% end %> <td><%= link_to ''Show'', {:action => ''show'', :id => tmplt} %></td> <td><%= link_to ''Edit'', :action => ''edit'', :id => tmplt %></td> <td><%= link_to ''Destroy'', { :action => ''destroy'', :id => tmplt }, :confirm => ''Are you sure?'', :method => :post %></td> </tr> <% end %> </table> <%= 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 %> <br /> <div class="additem"><%= link_to ''Create New Template'', :action => ''new'' %></div> <iframe id="ifrm" name="ifrm" width=70% height=70% style="position: absolute; right: 10px; top: 110px;border:1px dashed #666;" scrolling="no"> </iframe> ==============================================================================eof list.rhtml ============================================================================== -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Conrad Taylor
2007-Apr-02 00:02 UTC
Re: How to open scaffold show, edit, new etc in iframe
Hi, the following site should be helpful to you: http://kpumuk.info/ruby-on-rails/in-place-file-upload-with-ruby-on-rails/ Good luck, -Conrad On 4/1/07, Omkar Poudel <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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 > ==============================================================================> <table> > <caption> Template Manager </caption> > <tr> > <% for column in tmplt.content_columns %> > <th>Template(s)</th> > <% end %> > </tr> > > <% for tmplt in @tmplts %> > <tr> > <% for column in tmplt.content_columns %> > <td><%=h tmplt.send(column.name) %></td> > <% end %> > <td><%= link_to ''Show'', {:action => ''show'', :id => tmplt} %></td> > <td><%= link_to ''Edit'', :action => ''edit'', :id => tmplt %></td> > <td><%= link_to ''Destroy'', { :action => ''destroy'', :id => tmplt }, > :confirm => ''Are you sure?'', :method => :post %></td> > </tr> > <% end %> > </table> > > <%= 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 %> > > <br /> > > <div class="additem"><%= link_to ''Create New Template'', :action => ''new'' > %></div> > > <iframe id="ifrm" name="ifrm" width=70% height=70% style="position: > absolute; right: 10px; top: 110px;border:1px dashed #666;" > scrolling="no"> > </iframe> > ==============================================================================> eof list.rhtml > ==============================================================================> > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---