Set the id attribute of the resource.
# File active_resource/base.rb, line 564 def id=(id) attributes[self.class.primary_key] = id end
<code/>
<pre/>
<code/>and<pre/>for code samples.