Fixed rendering in controllers with non-hash parameters for new versions of rails