Consul 0.9 comes with many new features to optimize powers that only check access to a given record. e.g. Power.current.post...
I recently encountered the error above when I was running selenium tests. Thanks to a post on stackoverflow I found...
Similar to closing an opened browser window, spreewald now supports the I switch to the new browser tab step.
1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...
This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...
Merge requests are often rejected for similar reasons. To avoid this, before you send a merge request, please confirm that...
Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...
Capybara drivers will usually delete all cookies after each scenario. If you need to lose cookie data in the middle...
When your site is on HTTPS and you are linking or redirecting to a HTTP site, the browser will not...
Note: These instructions are for a quick per-project setup and may require you to change code. If you generally...
We have often felt the pain where our models need to serve too many masters. E.g. we are adding a...
In the following example the method update_offices_people_count won't be called when office_id changes, because it...
Rails gives you migrations to change your database schema with simple commands like add_column or update. Unfortunately these commands...
In specs, the session never persists but is always a new object for each request. Data put into the session...
Note: This technique is confusing and slows down your test suite. Copy the attached code to features/support. This gets you...
The User-Agent HTTP header identifies the client and is sent by "regular" browsers, search engine crawlers, or other web...
When a controller action redirects to an external URL (like http://somehost.com/some/path) you will find that this is hard...
Unfortunately, Capybara does not offer a switch to disable cookies in your test browser. However, you can work around that...
To set a cookie in your test browser for cucumber tests, you need to know which driver you are using...
Great presentation about writing Javascript like you write everything else: Well-structured and tested. JavaScript is no longer a toy...
Consider this class: class Foo private def test puts "Hello" end end While you can say create a block to...
TL;DR: You should generally use #size to count associated records. size Counts already loaded elements If the association is...
Safari & Chrome Use $x() in your console: $x('//span') # selects all span elements Firefox There's an add-on.
MongoMapper is a MongoDB adapter for Ruby. We've forked it so it works for Rails 2.3.x applications running...