O'Reilly logo

Rhomobile Beginner's Guide by Abhishek Nalwaya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Linking views to the homepage

Now we will add a link to the default homepage of our Rhodes application that redirects us to the index action of the employee controller.

Time for action Linking the employee view to the homepage

We will first link employee views on an iPhone. This index page in an app directory is the default homepage, which will be loaded in our application.

You can edit the generated ERB files to customize the HTML as desired. Typically, you will provide links to the employee index page from the home screen. Below is the generated top level index.erb file for our application:

<div class="pageTitle"> <h1>EmployeeApplication</h1> </div> <div class="toolbar"> <% if SyncEngine::logged_in > 0 %> <div class="leftItem blueButton"> <a href="<%= ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required