As we created the index page using metadata, now we will create views for new, edit, and show page.
We have to update
metadata
action incompany.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 EDIT companyname = { :type => 'labeledinputli', :label => 'Name', :name => 'company[name]', :value => '{{@company/name}}' } ...