<h1>Listing shares</h1> <table> <tr> <th>Created On</th> <th>Url</th> <th>Project_Name</th> <th>Share type</th> <th>Edit</th> <th>project_id</th> <th>user_id</th> </tr> <% @shares.each do |share| %> <tr> <th><%= share.created_on %></th> <th><%= share.url %></th> <th><%= share.title %></th> <th><%= share.share_type %></th> <th><%= link_to 'Show', share %> <%= link_to 'Edit', edit_share_path(share) %> <%= link_to 'Destroy', share, method: :delete, data: { confirm: 'Are you sure?' } %></th> <th><%= share.project_id %></th> <th><%= share.user_id%></th> </tr> <% end %> </table> <a href=javascript:window.open('http://localhost:3000/shares/new?from=3&title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','');void(0)><img src="genghuancheng" alt="QQshuqian" border="0" height="16" width="16"></a> <br /> <%= link_to 'New Share', new_share_path %> <a href=javascript:window.open('http://localhost:3000/shares/new?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','');void(0)><img src="genghuancheng" alt="QQshuqian" border="0" height="16" width="16"></a>