The problem is I can’t share partials between views from other
Controllers.
If I call the partial from the controller Albums everything work as
expected.
If I call it from other Controller, the variable albums is nil.
I already used :object => @albums, :collections => @albums and locals =>
{ :albums => @albums } but nothing.
Bottom: where I have a few thumbnails
 - index (list all photosets)
 @@key = ‘123’
<% content_for :albums do %>
 <%= render ‘shared/albums’ %>
<% end %>
views/shared/_albums.html.erb
<% albums.each do |a| %>
I don’t know whether it is the problem or a typo in the post, but that
should be @albums.each
when you say ‘No luck’ do you mean you see nothing in the browser or
there is some sort of error? Some things to try if you have not
thought of them already:
If you see nothing in the browser have a look at the html (View, Page
source or similar in browser) and see if there is anything there from
the partial.
Edit the partial (if necessary) so that it will always display
something (just some text maybe) even if the dynamic data that it
should show is not getting through, check the html again.
Try removing the partial file and make sure that an error is seen,
this will check that it is picking up the correct file.
Have a look in the log and see if anything useful there.
Use ruby-debug to break at various points to check the execution is
going where you expect.