I have 2 models (category with id(auto_increment), name and item with
id(auto_increment), category_id, name).
But I want to store the data with only one form that creates a new
category and the corresponding items at the same time.
My problem is now that I don’t know how to tell Ruby to fetch the
auto_increment id of the category table and then use it for the
category_id of the item table.