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
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
Hi Omkar, please provide the code snippet that you’re trying to use so
that we can better assist you.
-Conrad
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
Template(s) | <% end %>|||
---|---|---|---|
<%=h tmplt.send(column.name) %> | <% end %><%= 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 %>
Hi, the following site should be helpful to you:
Good luck,
-Conrad
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs