Monday 15 September 2014

ruby on rails 3 - How to save many records in one request -


I have designed a form that looks like a spreadsheet, entering the data in the field in the last line of a table, A series of records are created. Since, I do not know what field the user chooses to use (they can decide how data is related to them ... and then only those input fields are visible in the form), the form should be dynamic needed. For this, every input has a new record in place of all in the same DB table row, I did not leave the user in this case.

What is the best way, or even better ... How to save a record of the many models of joining a request?

If anybody appeals to this question ... then see it in hstore it is very flexible ... and of course, there is a way to solve these types of scenarios.



No comments:

Post a Comment