2014-04-02 78 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”}) –