I got the following error after updating the selenium-webdriver gem: wrong number of arguments (0 for 1) (ArgumentError) /home/pointoo-dev/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.35.1/lib/selenium/webdriver/common/platform.rb...
The Javascript in operator does what Hash#has_key? does in Ruby: Return whether an object has a property.
To find a hash key by it's value, i.e. reverse lookup, one can use Hash#key. It's available...
tldr; Use git diff -M or git diff --find-renames when you've moved a few files around. Usage
If your angular app is not served on /, but on a different url (say /admin), links generated with ui-router...
With ActiveSupport you can say: class Robot def self.likes_humans? 'Nope.' end delegate :likes_humans?, to: :class end Robot.likes_humans...
If you want to load an SQL dump from an ActiveRecord migration, you might find this to be harder than...
If you're getting this strange error message when setting debugging breakpoints, probably HAML is the culprit. Cause
I've pushed an update to Cucumber factory that simplifies working with FactoryGirl factories. Say you define a factory with...
If you get this error (probably because you want to load some modules): # modprobe xt_comment FATAL: Could not load...
I couldn't successfully execute a simple iptables command and got this error on an Ubuntu server: # /sbin/iptables -I INPUT...
When a gem author releases a new version to Rubygems, usually a tag with the version number (e.g. v1.2.0) is...
Jonas Nicklas, the author of Carrierwave and Capybara, has released Refile, a gem for handling file uploads in Rails. It...
ImageMagick takes a string with several options when cropping an image. See the command line options for how to provide...
Use it like this for inline icons: Germany They also work as block elements:
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
Make sure you have libcurl3-dev installed: sudo apt-get install libcurl3-dev gem install typhoeus
The condition for an if statement has to resolve to a boolean true/false value. However, all facts are strings, and...
Angular 1.3+ has an alternative getter/setter pattern: You can bind ng-model to an accessor function. This is a function...
JavaScript objects can have getter and setter functions that are called when a property is read from or written to...
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
Rails includes a way to see what an e-mail will look like. Integration to RSpec All you need to...
You can do so much more than console.log(...)! See the attached link for a great breakdown of what the developer...
Databound provides Javascript a simple API to the Ruby on Rails CRUD. Tries to expose a full model CRUD as...