views:

342

answers:

1

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?

A: 

You would need to patch rails generator templates to handle this. I know of no way to specify it

Peer Allan