Skip to content

Instantly share code, notes, and snippets.

@atinypixel
Created December 3, 2008 00:57
Show Gist options
  • Save atinypixel/31374 to your computer and use it in GitHub Desktop.
Save atinypixel/31374 to your computer and use it in GitHub Desktop.
<small><ul>
<% @curators.each do |member| %>
<li><%= member.person.name %></li>
<% end %>
</ul></small>
before_filter :get_plot_curators
private
# add to existing private methods
def get_plot_curators
@curators = Membership.find(:all, :conditions => ['plot_id = ? AND joined_on IS NOT NULL', @plot.id])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment