README.md in acfs-0.27.0.1.b244 vs README.md in acfs-0.27.0.1.b248

- old
+ new

@@ -120,9 +120,18 @@ @user.name # => "John @comments.size # => 25 @friends[0].name # => "Miraculix" ``` +Use `.find_by` to get first element only. `.find_by` will call the `index`-Action and return the first resource. Optionally passed params will be sent as `GET` parameters and can be used for filtering in the service's controller. +```ruby +@user = User.find_by age: 24 + +Acfs.run # Will request `http://users.myapp.org/users?age=24` + +@user # Contains the first user object returned by the index action +``` + Acfs has basic update support using `PUT` requests: ```ruby @user = User.find 5 @user.name = "Bob"