Have different rails app with same backend and database
<p>I am suppose to develop multiple web-apps that will share the same backend and database. 
I thought of doing this by developing a single Rails JSON API with a Postgresql db. I would then have my different "client" rails applications that will request the same JSON API either in AJAX (using JQUERY) or through their own set of rails controllers. </p>

<p>What do you think about this solution ? Am I going in the right direction ? Is there something better to do ?</p>

<p>==> I was also thinking maybe it is possible to have a single rails app that renders different html depending on the origin of the request ? what do you think ?</p>