For clarity and traceability, your commit messages should include the ID and title of the Pivotal Tracker story you're...

If a controller action responds to other formats than HTML (XML, PDF, Excel, JSON, ...), you can reach that code in...

In rare cases you might need something like form_for (for using form builder methods on the resulting block element...

Take care when trying to set attributes to nil in a blueprint. Given the following master blueprint: Story.blueprint do

37signals.com

Lately, we’ve been exploring ways to offer web apps that perform like native apps on mobile devices. For this...

Sometimes the order in which strings appear on a page matters to you. Spreewald gives you steps like these:

Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach...

Capybara's has_css? matcher has a couple of options you might find useful. Check that a selector appears a...

Inside before :each blocks you can refer to variables that you introduce via let later on. They do not need...

testobsessed.com

So this is the simulation that I use in my Agile Testing class, as well as in other contexts where...

RSpec's context (which is basically an alias for describe) takes over your whole application. No object may have its...

We use RTeX for PDF exports. While converting LaTeX to PDF, RTeX opens a temporary file which has problematic permissions...

css-tricks.com

Because they are vector, it would make sense if we could do things that other vector programs (e.g. Adobe Illustrator...

This will not work (it always passes): Then the "Title" field should contain "" The value is turned into a regular...

To only run a single describe/context block in a long spec, you can say spec spec/models/note_spec.rb:545 ... where the describe...

alfajango.com

The CSS Emoticons plugin is a simple jQuery plugin (and stylesheet) that allows you to turn any text emoticons on...

github.com

You can use the whatlanguage gem to detect the language of a Ruby string. Note that it also has not...

paulirish.com

Cached fonts WILL caused an unstyled flash of text.

wmd-editor.com

WMD is a simple, lightweight HTML editor for blog comments, forum posts, and basic content management. You can add WMD...

When submitting textareas, browsers sometimes include carriage returns (\r) instead of just line feeds (\n) at the end of each...

makandra dev

This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...

This raises "Could not find first Keyword": describe Keyword do it { should validate_uniqueness_of(:text) } end Do this instead...

When deploying Rails applications you might have noticed that JS and CSS are not cached by all browsers.

regular-expressions.info

You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...