ckeditor.com

Using the jQuery adapter breaks the built-in save function of CKEditor. Phenomenon: The page is submitted correctly, but the...

Generally for nested forms, a blank form is placed below all other existing object forms. If you would like to...

blog.bitcrowd.net

Recently, we had an interesting lunch-break with the rails 3.1. asset-pipeline in production mode. Daniel Zahn made a...

You can use the step definition below to say this: Then the "Last name" field should have an error

You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...

Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...

Ever wondered how Rails talks to itself in a Cucumber feature? In Rails 3 you can do it like this...

Do you have page caching enabled for the development environment and there are cached pages lying around in public/?

I believe that when WEBrick has trouble bringing up your Rails application, the WEBrick component that is supposed to print...

If you have any class which requires access to some path methods generated by your routes. Even though you could...

While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...

You've been there: A form cannot be submitted, but you don't see a validation error because the field...

Sometimes the Rails helper #distance_of_time_in_words is using too much magic. When you need a time difference...

Consider this HTML: Even though the surrounding container defines a line-height, which vertically centers its inline elements, the check...

When the Ruby parser module of Ruby-GetText comes across a file in one of its search directories (e.g. lib/scripts...

Detecting if a Javascript is running under Selenium WebDriver is super-painful. It's much easier to detect the current...

Hint: There's another card with this helper for Cucumber features. Sometimes you feel like you need to stub some...

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...

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...