2014-04-02 97 views

回答

0

答案是:

 
HTTParty.post("#{my_host}/locomotive/api/tokens.json", body: {:email => "[email protected]", :password => "mypassword"}) 
+0

有人要重構? –

+0

您可以這樣做:HTTParty.post(「#{my_host} /lotive/api/tokens.json」,正文:{email:「[email protected]」,密碼:「mypassword」}) –