Sets the URI of the REST resources to map for this class to the value in the site argument. The site variable is required ActiveResource’s mapping to work.
Source Code
# File active_resource/base.rb, line 176 def site=(site) @connection = nil @site = site.nil? ? nil : create_site_uri_from(site) end
<code/>and<pre/>for code samples.