This file contains 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
# Origin of etag_matches? https://github.com/rails/rails/blob/7511f9794df8f803f28306d378f9fefc28165886/actionpack/lib/action_dispatch/http/cache.rb | |
module ActionController | |
class Request | |
alias_method :etag_matches_original?, :etag_matches? | |
def etag_matches?(etag) | |
!env['HTTP_USER_AGENT'].include?('MSIE') && etag_matches_original?(etag) |
This file contains 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
Template: | |
<script id="competition-dashboard-template" type="text/x-handlebars-template"> | |
{{#competitionCompleted this}} | |
<h1>Done</h1> | |
{{else}} | |
<h1>Not Done</h1> | |
{{/competitionCompleted}} | |
{{#loginPanel}} |
This file contains 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
gem "haml", ">= 3.0.12" | |
gem "factory_girl" | |
gem "rspec-rails", ">= 2.0.0.beta.15", :group => :test | |
generators = <<-GENERATORS | |
config.generators do |g| | |
g.orm :active_record | |
g.template_engine :haml | |
g.test_framework :rspec, :fixture => false, :views => false | |
g.fixture_replacement :factory_girl |
This file contains 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
require 'rubygems' | |
require 'camping' | |
require 'camping/ar' | |
require 'camping/session' | |
require 'redcloth' | |
require 'xml/mapping' | |
Camping.goes :CSRFExperiment | |
module CSRFExperiment |
NewerOlder