Displaying 1 result from an estimated 1 matches for "personal_links".
2006 Aug 11
0
Calling find method on partial render
I want to add a display of personal links to my 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>
&...