#dom_id should use AR#to_param instead of AR#id

Hi, I have just commited a patch for ActionController's #dom_id, it should iternally use AR#to_param instead of AR#id, because #to_param is used for routing representation of an ActiveRecord inside ActionPack.

You can found the ticket here: http://dev.rubyonrails.org/ticket/11179.

Luca.