search for: post_json

Displaying 2 results from an estimated 2 matches for "post_json".

2006 Jul 15
6
camping - inspiring new way to write applications
hi all, curious about your input on this latest design experience i''ve had with camping. none of that developing a traditional html ui, a ruby backend, and ajax-ifying the application after being built. - i started straight off with a camping-based json api (for the model). - next step was writing the controller in pure js - no dom interactions here. - then finishing off with a view
2010 Aug 03
0
curl works when testing JSON response but the functional and integration tests do not work.
...es something line /blah/model.json When I POST to that URL using curl like this curl -H "Content-Type:application/json" -H "Accept:appn/json" -d "data" http://localhost:3000/blah/model.json it works just fine. In my test functional test I have this method def post_json (data) post "/blah/model.json", {:data => data.to_json}, {''Content-Type'' => ''application/json'', ''Accept'' => ''application/json''} end When I run this test I get the error ActionController::UnknownAction: N...