Errors while trying to rake doc:guides

Using current rails master I get the following errors trying to generate the guides:
`no implicit conversion of Symbol into String`

Changed the way to set the attributes of the node from `[]=` to `set_attribute`