makandra dev

The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...

When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...

makandra dev
github.com

When you need to use diff in either some Ruby code or your Rails app, use the differ gem.

en.wikipedia.org

Under the same origin policy, a web page served from server1.example.com cannot normally connect to or communicate with a server...

robots.thoughtbot.com

I think this pattern is really useful not just for upgrading suites from Webrat, but really anywhere you have an...

This is now part of geordi. Please don't follow the instructions below, if you use geordi. Inspired by the...

The Javascript code below is a rough equivalent to the simple_format helper that ships with Rails: function simpleFormat(str...

Note: If you are currently working with Ruby 1.8.7 or 1.9.3, we recommend to upgrade to Ruby 2.1 first. From...

In Rails 2, you could use link_to_remote...

...:update => 'id' to automatically replace the content of $('#id').

Note that this card is very old. You might want to use ActiveType for your auto-coerced virtual attributes instead...

We usually generate our commit messages from Pivotal Tracker IDs and titles, like [#15775609] Index view for conflicts

When you generate a URL in a mailer view, ActionMailer will raise an error unless you previously configured it which...

Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.

When you render a nested form for a Movie which has_many :actors, you want to render the right number...

If you need Google Chrome to run in English, and your system locale is a non-English one, you have...

If you want to use a helper_method my_helper_method inside a model, you can write ApplicationController.helpers.my_helper...

makandra dev

This card explains how to upgrade an existing RubyMine installation to a newer version. If you're installing RubyMine for...

When rendering a number, you want to pretty up the string coming from #to_s: Render 0.0 as 0

I encountered a bug in RSpec 1.x where stubbed class methods ("static methods") would not be unstubbed before the...

geordi, our collection of awesome shell scripts, has been extended by three scripts to help you call RSpec or Cucumber...

This snippet makes links that refer to an anchor (like "...

...") scroll softly to it.\ In this example we only do...

schema.org

If you would like to enrich your website with semantic markup like contact data, places or events you should have...

devblog.imedo.de

XPath matchers can be combined with CSS-selector matchers. This is really useful if not, for example, the content of...

Update: Staticmatic will not be further developed. They suggest to switch to middleman. If you need to make a static...