Errors were being thrown due to block not being passed to controller render method.