I have used http://www.barelyfitz.com/projects/tabber/ in my rails
view. My problem is when I place a partial in the second tab I lose
access to the global @model.id attribute for reference purposes with
the draggable_element.
<% for pdf in @article.pdfs %>
<%= image_tag pdf.title,
:style => "vertical-align: middle",
:id => "#{@article.id}_#{pdf.id}",
:class => "attached_pdf" %>
<%= draggable_element "#{@article.id}_#{pdf.id}", :revert =>
true %>
<% end %>
If I use "#{@article.title}_#{pdf.id}" for the image_tag :id and
draggable_element id it works without problem. If I place the render
partial call in the first tab it works without problems..
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---