myexperiment-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Myexperiment-discuss] Get credits and tags


From: Linde, A.E.
Subject: [Myexperiment-discuss] Get credits and tags
Date: Thu, 6 Nov 2008 17:19:17 +0000

Sorry to bother everyone again, but I need to get just the names of creditors and tags against each workflow. I’ve copied the stuff from _table.rhtml and got:

    <% unless (creditors = workflow.creditors).empty? %>    cn_<%= workflow.id %> = "<% creditors.each do |c| %><%= contributor(c.creditor_id, c.creditor_type) %><% end %>";    <% else %>    cn_<%= workflow.id %> = "";    <% end %>

   <% unless (tags = workflow.tags).empty? %>    ta_<%= workflow.id %> = "<%= tag_cloud_from_collection tags, true %>";    <% else %>    ta_<%= workflow.id %> = "";    <% end %>
But of course contributor and tag_cloud... give full html stuff. I have tried to figure out where to get this information by searching the code for relevant bits but have failed. (Maybe now I understand a little bit more I could do with another explanation of how the myExperiment rails app is structured and works.)

In the meantime, could I ask just for the creditor names and tag names to plug into the above code?

Thanks,
Tony.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]