search for: sunriseresourc

Displaying 1 result from an estimated 1 matches for "sunriseresourc".

Did you mean: sunriseresource
2006 Jun 28
0
ActiveResource (was: 1.1.3 available.)
...2 (201 Created) david.id # => 2 david.name = "David Heinemeier Hansson" david.save # PUT http://www.example.com/people # <person><name>David Heinemeier Hansson</name></person> # => (200 OK) ---- slide H -------------------------------------------- class SunriseResource < ActiveResource::Base uri ''http://www.example.com'' credentials :name => ''dhh'', :password => ''secret'' end class Person < SunriseResource def first_name name.split('' '').first end end david = Person.fi...