After searching for long time, I found the following link useful.
What I have understood till now is that it is not possible to create a Logi application using ruby. An existing rails application can be used for SSO feature with Logi application.
Following link is useful. http://devnet.logianalytics.com/rdPage.aspx?rdReport=Article&dnDocID=1126