views:

9

answers:

0

I have a form that allows entry of data corresponding to multiple rows in the database table. How do I model such a thing with ruby on rails ?

In all my Ruby on Rails samples, I have a controller, model and view. The view displays the content from the model and the model corresponds to a single entity.

As an example : I have a database that has a table (patient info table) keeps track of patient name, age, data of birth.

Now I need a form that allows ability to input information for multiple patients. The user should be allowed to add any number of patient info from the UI.

I am unclear on how I design this with Ruby on Rails.

Thanks