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

Getting all the views for company from Metadata

As we created the index page using metadata, now we will create views for new, edit, and show page.

  1. We have to update metadata action in company.rb of the RhoSync application:
    def metadata objectlink = { :type => "linkli", :uri => "{{showuri}}", :text => "{{name}}" } list = { :type => "list", :children => [objectlink], :repeatable => "{{@companies}}" } content = { :type => "content", :children => [ list ] } toolbar = { :type => "toolbar", :lefturi => "/app", :righturi => "/app/Company/new", :lefttext => "Home", :righttext => "New"} title = { :title => "Meta Company", :type => "title"} index = { :title => "index", :type => "view", :children => [title, toolbar, content]} ## NEW ###Shared with NEW and ...

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