Try with <a href="/app">.
<a href="./index.erb”> will not work on devices because .erb and .rb files get encrypted while deployed to devices.
It does work on Rho Simulator because there is no encryption for this.
You can try below to make it work.
<a href=“/app/ControllerName/index”> or <a href=“/app/ControllerName”> (By default it calls index action of your ControllerName controller and it renders index.erb view)
If your index.erb under /app then you can mention start_path=“/app” which will load /app/index.erb.
Thanks xqg834 for your reply, it worked using <a href="/app">.
However, in case I do not want to reference to the index file in the app folder, what is the "ControllerName" in <a href=“/app/ControllerName/index”> you talked about?
Kindly go through documents available at docs.rhomobile.com. You can start from this url http://docs.rhomobile.com/en/5.0.0/guide/appdesign#what-is-mvc
There are video tutorials also available at https://developer.motorolasolutions.com/community/rhomobile-suite/videos
Hope above reference will help you to write application using rhodes framework.
Keep in mind that this is a MVC Framework. A link or event calls the controller which invokes the relevant method which might connect to the model, does some processing and then returns back results to the view.
in your case above, the link calls the index method of your controller which renders the view (index.erb)