Errors were being thrown due to block not being passed to controller ren...

...der method.