search for: protect_xhr_methods

Displaying 1 result from an estimated 1 matches for "protect_xhr_methods".

2007 Dec 03
8
automatic 'verify :xhr => true' for methods ending with _xhr
hey guys, i am writing a couple of actions which are only used with an xhr. I ''protect'' them all against a direct access with the ''verify'' method in the controller verify :only => ..., :xhr => true it would be cool if the system would automatically recognize the xhr actions and protect them ... i want to postfix methods with ''_xhr'' and