have working routine/new submitting JSON, but still need to correct issue with rails not accepting the post.