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

Time for action CRUD operations on contacts

We will now perform all the CRUD operations on contacts. This means we will add, read, update, and delete the contact of our device from the Rhodes application.

Follow these steps:

  1. Create a model contacts using the rhogen command:
    rhogen model contacts first_name, last_name, mobile_number, home_number, business_number, email_address, company_name
    
  2. You will get the following output:
    Generating with model generator: [ADDED] app/Contacts/index.erb [ADDED] app/Contacts/edit.erb [ADDED] app/Contacts/new.erb [ADDED] app/Contacts/show.erb [ADDED] app/Contacts/index.bb.erb [ADDED] app/Contacts/edit.bb.erb [ADDED] app/Contacts/new.bb.erb [ADDED] app/Contacts/show.bb.erb [ADDED] app/Contacts/contacts_controller.rb ...

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