Save multiple google maps points as nested attributes on Rails-Collection of common programming errors

I have created a scaffold named “Travel”, which have as nested attribute “Points”.

When I go to the “edit” page of “Travel”, I open the js of google maps, and I want to let the users to add as many points as they want.

I don’t know how to do multiple posts to rails for save an undefined number of points.

Thank you to all.

Originally posted 2013-11-09 23:36:52.