Skip to content

Instantly share code, notes, and snippets.

View sivajankan's full-sized avatar

Siva Kandasamy sivajankan

  • Dartmouth College
  • Hanover NH
View GitHub Profile
require "capybara"
html = DATA.read
app = proc { |env| [200, { "Content-Type" => "text/html" }, [html] ] }
sess = Capybara::Session.new(:selenium, app)
sess.visit("/")
__END__
@bvajda
bvajda / solutions.markdown
Created August 13, 2011 12:25
ruby/rails tips, tricks, solutions

Ruby and Rails Tips, Tricks and Solutions

  • 'normalize_yaml_input' error might be caused by wrong locale settings.

    # CLI
    locale
    # => "LC_ALL ="
    export LC_ALL="en_US" # (or your locale of choice)