Seems like the end symbols above are out of order or something... or not indented correctly? There are two "end"s one on top of the other, and then the above node.save is indented one more level than the end above it? Could you verify that indentation is correct for the above if end blocks? Thanks!