In my rails 4 app the user gets started by signing in via oauth which creates a new record in the users table. The next step the user enters keywords in a form which consists of five fields plus a sixth field for their email address. Upon submission, how do I tell rails to update their record in the users table with their email address and save their keywords to the keywords table? Is this possible because I don't think you can do a post and put request in the same submit. If not, do I create a separate table for user email addresses? What is the best solution?
            Asked
            
        
        
            Active
            
        
            Viewed 58 times
        
    1 Answers
0
            See this PUT vs POST in REST
Why can't you do it all in the same request?
- 
                    thanks... i didn't know a put can create a record. I thought it was only for updating. so in my example I would use put to save new records and update an existing record all in the same request. – user3213561 Feb 15 '14 at 03:24
- 
                    Cheers mate! let me know if I can help with anything else. – Sean Feb 15 '14 at 03:27
- 
                    You can create a record even with GET, but is not a good choice. – hmartinezd Feb 15 '14 at 04:55
 
     
    