xRTML is designed to work with any platform / framework that sends HTML to the browser, so there are no restrictions on Ruby or Ruby on Rails. There are four things in the code: Djj:
1) your Connection tag still has the appkey and authtoken values set by default, which come with the documentation, you need to use the ones that are provided in the development kit ...
<xrtml:connection appkey="myAppKey" authenticate="false" authtoken="myDevToken" url="http://developers.realtime.livehtml.net">
2) you do not include the script in your page (perhaps you just did not embed it in your question, but :)
<script type="text/javascript" src="path/to/xrtml.js"></script>
3) the Calendar tag needs an HTML container in which it will be displayed. In the tag, you see target = "# divcalendar", that is, the Sizzle selector for the div where the html of the calendar will be displayed, so you should specify somewhere:
<div id="divcalendar"></div>
4) a handler for perseverance ... that's where things get serious. The Calendar tag requires a server-side handler and database. therefore, you must implement in ruby a handler for ajax calls made by the calendar (you can find the documentation for it in http://docs.xrtml.org/markup/calendar.html , under "3.2. Saving Data"). So, when defining a tag:
<xrtml:calendar ... handlerurl="path/to/yourhandler" ...></xrtml:calendar>
source share