If you render markdown from user input, an attacker might be able to use this to inject javascript code into...
https://tableconvert.com/ is an online tool to convert tables between different formats (e.g. json, markdown, csv).
This is now part of geordi. Please don't follow the instructions below, if you use geordi. Inspired by the...
tl;dr: Always have your attachment path start with :rails_root/storage/#{Rails.env}#{ENV['RAILS_TEST_NUMBER']}/. The directory where you...
We usually generate our commit messages from Pivotal Tracker IDs and titles, like [#15775609] Index view for conflicts
...After('@chrome320x480') do Capybara.use_default_driver end You can use either chromium or chrome beta (as of 2012.05 the Version "19.0.1084.41 beta" works), or any other member of the family...
...bart@simpson.com" and the password "secret" When I sign in as "bart" Then I should bee on the home page And "logout" should be reachable
Instead, I'm now using a "full" selector to avoid the broken behavior: page.find('.message:nth-of-type(1)', :text => 'Hello World').text => "Hello World" page.find('.message:nth...
has_many :holidays validates_numericality_of :holiday_count end class Holiday < ActiveRecord::Base belongs_to :region after_save :update_holiday_count_in_region after_destroy :update_holiday_count_in...
region.update_attribute :holiday_count, region.holidays.count end end Note that there are probably better days to implement the holiday_count mechanism, but humor me for the sake of the...
...Rails booting a few seconds. In your binstubs, there should be something like this: begin load File.expand_path("../spring", __FILE__) rescue LoadError end Change it as follows. running_in_parallel...
...ENV.has_key?('TEST_ENV_NUMBER') || ARGV.any? { |arg| arg =~ /^parallel:/ } begin load File.expand_path("../spring", __FILE__) unless running_in_parallel rescue LoadError end That's it. bin/rspec your_spec.rb will now boot...
...s #find method raises an error if nothing could be found. #first should behave like #find used to. i18n requires Ruby >= 1.9 -> Add gem 'i18n', '< 0.7.0' # 0.7.0 requires Ruby...
Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...
Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...
This is an awful way to test whether a number is shown on the screen: Then I should see "5...
Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso...
In case Ruby does not detected the expected encoding of a file automatically you can specify the known encoding manually...
This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. This setup allows...
Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...
This is not an issue in newer versions of HAML (starting with 5.0.0), as the ugly-option was removed...
If you want your application to display properly on iPad, iPhone or Android there are two things to do:
Example (broken in IE): flex: 0 1 calc(50% - 20px) Workaround: flex-basis: calc(50% - 20px) flex-grow: 0 // Default...
...has announced that, starting with Firefox 22, the popular open source web browser will begin blocking third-party cookies by default. That means only websites you actually visit will be...
With the impending release of Ruby on Rails 4, it looks like a lot of developers will be updating their...
CSS support in major e-mail clients is horrible. This will give you an overview what you will not be...
When you simply want to get to know Puppet, follow puppetlabs’ Learning Puppet Docs. They give you a handy introduction...