Created
May 27, 2011 12:21
-
-
Save DarkFox/995136 to your computer and use it in GitHub Desktop.
Self-contained demonstration of IE9 fail. Uses Prototype-UJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= form_tag test_ie_path(0), :method => :put, :remote => true do %> | |
| <%= submit_tag 'Submit' %> | |
| <% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TestIeController < ApplicationController | |
| def index | |
| end | |
| def update | |
| respond_to do |wants| | |
| wants.html { | |
| puts '!!HTML!!' | |
| render :text => 'Epic fail!' | |
| } | |
| wants.js { | |
| puts 'JS' | |
| render :text => "alert('Full of win');" | |
| } | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment