Could someone please remind how I get the generator to add the lines required to use JSON in my controllers? Having to type format.json { render :json => @story } type lines to each action is starting to get old?
views:
342answers:
1
A:
You would need to patch rails generator templates to handle this. I know of no way to specify it
Peer Allan
2009-10-08 16:47:21