Skip to content

Instantly share code, notes, and snippets.

@DarkFox
Created May 27, 2011 12:21
Show Gist options
  • Save DarkFox/995136 to your computer and use it in GitHub Desktop.
Save DarkFox/995136 to your computer and use it in GitHub Desktop.
Self-contained demonstration of IE9 fail. Uses Prototype-UJS
<%= form_tag test_ie_path(0), :method => :put, :remote => true do %>
<%= submit_tag 'Submit' %>
<% end %>
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