We will create one more model company, which is similar to the employee model that we created in the last chapter. In addition to a default attribute ID that is created by Rhodes, we will have one attribute name that will store the name of the company.
Now, we will go to the application directory and run the following command:
$ rhogen model company name
which will generate the following:
[ADDED] app/Company/index.erb [ADDED] app/Company/edit.erb [ADDED] app/Company/new.erb [ADDED] app/Company/show.erb [ADDED] app/Company/index.bb.erb [ADDED] app/Company/edit.bb.erb [ADDED] app/Company/new.bb.erb [ADDED] app/Company/show.bb.erb [ADDED] app/Company/company_controller.rb [ADDED] app/Company/company.rb [ADDED] app/test/company_spec.rb
We can notice the number of files generated by the Rhogen command, which was explained in the last chapter.
Now, we will add a link on the index page so that...