Topic: Curious dom_ids with simply_helpful

To my knowledge, the convention behind dom_id helper is that you pass an object to it as an argument

<% dom_id @item %>

should compile to:

id="item_23" class="item"

but for some reason I don't get the class of the item, or its ID. Instead I am getting

id="string_27941670" class="string"

This is happening when I call a partial in simply_helpful fashion

<% render :partial => @items %> #I really love this!

Has anyone else faced this issue?

Re: Curious dom_ids with simply_helpful

Are you sure @item contains a model? Looks like it contains a string.

Railscasts - Free Ruby on Rails Screencasts