client/lib/base_object.rb
def add_link!(object_name, id)
        @objects << {
          :type => :link,
          :method_name => object_name.sanitize,
          :id => id
        }
        @objects << {
          :type => :text,
          :method_name => "#{object_name.sanitize}_id",
          :value => id
        }
      end
# This method add link to another object in REST model
# XML syntax: <link rel="destroy" href="http://localhost/api/resource" method="post"/>
This method add link to another object in REST model
XML syntax: 
This method add link to another object in REST model XML syntax :
def add_link!(object_name, id)
        @objects << {
          :type => :link,
          :method_name => object_name.sanitize,
          :id => id
        }
        @objects << {
          :type => :text,
          :method_name => "#{object_name.sanitize}_id",
          :value => id
        }
      end
def add_link! ( object_name , id ) @objects << { :type => :link , :method_name => object_name . sanitize , :id => id } @objects << { :type => :text , :method_name => "#{object_name.sanitize}_id" , :value => id } end
This method add link to another object in REST model
XML syntax: <link rel="destroy" href="http://localhost/api/resource" method="post"/>
This method add link to another object in REST model XML syntax : <link rel = " destroy " href = " http : // localhost / api / resource " method = " post " / >
object_name
id