atinypixel (owner)

Revisions

gist: 31374 Download_button fork
public
Public Clone URL: git://gist.github.com/31374.git
Embed All Files: show embed
_menu_curators.html.erb #
1
2
3
4
5
6
<small><ul>
  <% @curators.each do |member| %>
    <li><%= member.person.name %></li>
  <% end %>
</ul></small>
 
plots_controller.rb (private method and before_filter) #
1
2
3
4
5
6
7
8
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