Guest User

Untitled

a guest
Apr 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. #en el controllador channels > index
  2. <%= link_to_remote(image_tag('expand.png', :class => "expander", :align => "middle"), :url => {:action => 'magick_playlist'} )%>
  3.  
  4. #tambien en el controllador channels > index
  5. <div id="playlist">
  6. <%= render :partial => 'channel_playlists', :collection => @channels %>
  7. </div>
  8.  
  9. #en el partial channel_playlists
  10.  
  11. <% for playlist in @channels.playlists do %>
  12. <ul id="site-map" style="position: relative;">
  13. <li id="page_<%= playlist.id%>" class="node level-1 no-children">
  14. <div class="page">
  15. <span class="w1">
  16. <%= image_tag('page.png', :class => "icon", :align => "middle")%>
  17. <span class="title">
  18. Playlist <%= playlist.name %>
  19. </span>
  20. </span>
  21. </div>
  22. </li>
  23. </ul>
  24. <% end %>
  25.  
  26. #Error
  27. undefined method `playlists' for #<Array:0x48a3348>
Add Comment
Please, Sign In to add comment