search for: _xhr

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

2007 Dec 03
8
automatic 'verify :xhr => true' for methods ending with _xhr
...9;'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 those should be only accessible with an xhr. - good for readability - good for my DRY does anyone has a tip on how to implement this? i guess it should go into the ''ApplicationController'' -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~---------...