diff --git a/README.md b/README.md index 1df7dda..417473c 100644 --- a/README.md +++ b/README.md @@ -71,9 +71,9 @@ The only places where you can actually used instance variables are into Proc (o ```ruby # We reference the @posts varibles that will be used at rendering time collection :@posts - + # Here you can use directly the instance variable because it -# will be evaluated when rendering the object +# will be evaluated when rendering the object node(:read) { |post| post.read_by?(@user) } ``` @@ -92,6 +92,7 @@ RablRails works out of the box, with default options and fastest engine availabl # config.cache_templates = true # config.include_json_root = true # config.json_engine = :yajl + # config.xml_engine = 'LibXML' end ``` @@ -139,7 +140,7 @@ You can aliases these attributes in your response ```ruby attributes title: :foo, to_s: :bar -# => { "foo" :