gleeBox is an experimental project that takes a keyboard-centric approach to navigating the web. It provides alternatives to actions...
Generally, Selenium tests use the browser to interact with the page. If it's unavailable, a timeout error is...
url = 'http://www.foocorp.com/foo/bar' URI.parse(url).host # => www.foocorp.com Note that this will raise an error if the given argument is...
In theory you can take any scope and extend it with additional joins or conditions. We call this chaining scopes...
If you require your Rails models manually, pay attention to the path you use. Unless you have...
If your application has forms to edit string fields, you probably want to strip the entered values (remove whitespace from...
“Fat models” cause maintenance issues in large apps. Only incrementally better than cluttering controllers with domain logic, they usually represent...
Many jQuery plugins suffer from a good plugin architecture. When you write jQuery plugins you should use the plugin pattern...
Example task: Multiply the table holidays between several stages. Open two terminals: shell-for stage_1 shell-for stage_2...
This didn't work for me. Seems display is already taken in Machinist. # in spec/support/blueprints.rb Partner.blueprint do company_name
Never ever declare your associations with a string, especially when doing metaprogramming. A common mistake is something like # WRONG
If this happens to you: user.avatar = Avatar.new user.avatar # => nil (where avatar is a belongs_to), you probably declared your association...
This describes how to migrate an existing cucumber test suite to Spreewald. Add the gem Include spreewald into your cucumber...
Cucumber_rails' old-school web-steps have been deprecated for a while, urging developers to write high-level step definitions...
There is no reason to leave trailing whitespace characters in your project's files, so don't add any.
TL;DR Avoid before(:context) (formerly before(:all)), use before(:example) (formerly before(:each)) instead. If you do use before...
to_file has been removed in Paperclip 3.0.1. Instead of using File to access Paperclip storage objects (like this: File.read...
CSS transitions make your responsive websites smoother and more professional. It's easy and already there. Use it!
Given you store files on Amazon S3 and you need to stream those files out to people while you don...
Ever wanted autocompletion for paths from paths.rb in Cucumber? This card lets you write your steps like this:
This plugin makes it easy to add fit-to-fill background video to websites. It can play silent ambient background...
StaticMatic is a nice tool to build simple static websites. In case you want to have some nifty styles on...
When you work in the MySQL console and you want to see which database is used, type: SELECT database();
Now works with radio buttons.