ruby if logged in use. php else use .php
===

is there a way to tell ruby to use this.php if logged in else use that.php if not?

Im stuck using ruby and php is this going to work? or are the two languages completely incompatible to cross talk them like that.

Thanks for any information or guidance.

if not .php the rhtml, will have to try and adapt things.