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.
Please have a try with

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

```