search for: user_links

Displaying 1 result from an estimated 1 matches for "user_links".

Did you mean: user_line
2006 Aug 11
0
Calling find method on partial render
...y users. Is there a way I can call a .find method when a partial is rendered? This is in my website''s template: <% if !session[:user_id].nil? %> <%= render :partial => "/layouts/personal_links" %> <% end %> The contents of the partial are: <ul id="user_links"> <li>My Links <ul id="links"> <% for links in @personal_links %> <li><%= link_to links.name, links.url %></li> <% end %> </ul> </li> </ul> The trick is, I need to set @personal_links (or something similar...