I have read about using :remote=>true in rails3 and know that it add data-remote=true attribute to the generated html tag. But data-remote is a new attribute introduced in html5. Will :remote=true auto downgrade to some compatible implementation(old js or something else) in a browser that doesn’t support data-remote attribute?
I have read about using :remote=>true in rails3 and know that it add data-remote=true
Share
You don’t need to worry about that.
data-remoteis not something the browsers support, but something implemented in rails-ujs (which is the jQuery-to-Rails integration lib). Pretty much all browsers today support data attributes (whey supported them even before HTML5 was introduced).