I know how to do that with nested attributes (http://railscasts.com/episodes/196-nested-model-form-part-1?autoplay=true) but now I’m trying to do it without nested attributes.
I would like to have a table with something like this…
first_name last_name phone
| | | |
| | | |
| | | |
save
So it’s a table and there is a field inside every cell. If you add three people to the table and then hit save, there will be 3 people save to the database.
This is probably not the best solution possible, but you can do something like
and then
params[:users]will contain an array. The controller action will look something like