December 14, 2009

Append method to to_json in ROR

def to_json(options = {})
options.merge!(:methods => :uri)
super(options)
end

def uri
return SERVER_URL + "/categories/" + uuid
end

=========> change mode of Rials
script/server -e development||product

December 13, 2009

references for Ruby on Rails

http://api.rubyonrails.org/classes/ActionController/AbstractRequest.html

http://api.rubyonrails.org/classes/ActiveResource/Base.html

http://guides.rubyonrails.org/