What is the best way to take a serialized list in JavaScript and save it to an instance variable array(or hash) in Rails?