Supposing i have a table Employees as follows
id | Name | Age | Salary |
and use scaffold while generating model, view and controller by the
ruby script/generate scaffold Employee
When I go to the new entry page by choosing
I get a form with 3 fields after entering which and pressing submit
buttons the entries are submitted to the database.
I i have to add one more entry i have to again press on new link and
again enter them followed by pressing submit button. I will have to
repeat the process 100 times if i have to enter hundred records.
can I have multiple rows of input, so that i can enter all of them and
press a single submit button, after which all the entries are submitted
to the database?
Please let me know the approach i need to follow to achive this.