Updated ruby on rails support.  Found bug if not defined in some instanc...

...es would throw uncaught error.  Handled correctly now.