Utilizing ActionController\'s new respond_with method...how does it determine what to render when action (save) is successful and when it\'s not?
Apologies in advance for the verbosity of this question. If you bear with me I think you\'ll find it\'s actually quite simple...just hard for me to explain given my limited Rails domain knowledge.
I am using respond_with and everything is hooked up right to get data correctly.I want to customize the returned json, xml and foobar formats in a DRY way, but I canno开发者_高级运维t figure out how t
I need to generate a set of coordinates in Erlang. Given one coordinate, say (x,y) I need to generate (x-1, y-1), (x-1, y), (x-1, y+1), (x, y-1), (x, y+1), (x+1, y-1), (x+1, y), (x+1, y+1). Basically