dirty code of the minute:
playing around with polymorphism, cheaply:
1 <%= render :partial => "shared/#{content.class.to_s.downcase}", :object => content %>
there’s gotta be a better way to do that.
latest post:
playing around with polymorphism, cheaply:
1 <%= render :partial => "shared/#{content.class.to_s.downcase}", :object => content %>
there’s gotta be a better way to do that.