Update rails.js

Check disabled attr on allowAction.