Closed shmeltex closed 11 years ago
Yes it is a normal issue. child
method expects two arguments but with your first example, Ruby parser only sees one hash so it will produce no output.
You can use { ... }
to clearly separate the two hashes or you can change this to a clearer syntax :
child(:@notes, :root => :data, :partial => 'notes/_single')
I'll check is there is a clean way to accept your first example as a valid syntax
I'll close this issue since it's a normal syntax error. You need to put curly braces to separate the two argument hashes. Thanks for reporting the issue anyway.
If following syntax is used in template
Child element will produce no output.
Workaround is