How to use multiple models for tag_cloud?
问题 _tags.html.erb #Version 1 (Just lists out habits tags) <% tag_cloud Habit.tag_counts, %w{s m l} do |tag, css_class| %> <%= link_to tag.name, tag_path(tag.name), class: css_class %> <% end %> #Version 2 <% tag_cloud(@tags, %w(css1 css2 css3 css4)) do |tag, css_class| %> <%= link_to tag.name, { :action => :tag, :id => tag.name }, :class => css_class %> <% end %> How can we get it where it list's out the current_user 's habits AND goals, valuations, quantifieds? f.text_field :tag_list is in the