<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;h2&gt;Sharing any object to a group&lt;/h2&gt;
&lt;p&gt;tog_social comes with &lt;strong&gt;sharing-to-group&lt;/strong&gt; capabilites out of the box. You can share any object to a group. You just need to add a call to the following helper and you will have a link to share any content to your group:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;
  &amp;lt;%= share_with_groups_link(object_to_be_share) %&amp;gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;A user can share content only to a group he is member of. By default all your groups of the current user are shown, but you can pass an optional parameter to this method and only the groups moderated by the user will be shown.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;
  &amp;lt;%= share_with_groups_link(object_to_be_share, true) %&amp;gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Since this feature is developed using &lt;a href=&quot;http://github.com/IamPersistent/acts_as_shareable&quot;&gt;acts_as_shareable&lt;/a&gt;, you could use this to share any content to any other object your network use (for example, a project if your social network  uses projects as it&amp;#8217;s social object).&lt;/p&gt;
&lt;h3&gt;&lt;span class=&quot;caps&quot;&gt;TODO&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;Implement this to share content between objects and not just sharing to groups.&lt;/p&gt;</body>
  <created-at type="datetime">2009-11-26T23:22:24-08:00</created-at>
  <id type="integer">308975</id>
  <permalink>sharing-any-object-to-a-group</permalink>
  <repository-id type="integer">44555</repository-id>
  <title>Sharing any object to a group</title>
  <updated-at type="datetime">2009-08-29T10:03:50-07:00</updated-at>
  <user-id type="integer">4295</user-id>
</wiki>
