Question: How can I query the Mac OS X keychain to retrieve only session items ?

When I try to get all items like this :

```
[SSKeychain accountsForService:nil];

```

A session item and a system item have exactly the same attributes for the keys : acct, cdat, class, crtr, labl, mdat, svce

How can y query the keychain to get only session items or distinguish them ?

Thank you for your help !

Answer: 
You can pass link\_to a block that contains the content you want to display. So instead of going with the `link_to(display, url, options={})` you get `link_to(url, option={}, &block)` where you can do.

```
<%= link_to index_by_dvp_domain_path do %>
  <div style="background-image: url(<%= image_url '1.jpg'%>);width:340px;"> 
   This is a  test
  </div>
<% end %>

```

After you do this you can treat it like normal html.

As always, I'd recommend trying to move any style out into it's own separate stylesheet.
I think using Link\_to as below would be much more simpler even when you have a big block including multiple tags:

```
<%= link_to desired_path do %>
    <div class="linkable">
        <another div>
             ... some other tags
        </another div>
    </div>
<% end %>

```

and I recommend you to use a different background color for mouse over events because it shows the viewer that it's a link!

In you .css file:

```
.linkable:hover{
    background-color: red;
}

```