makandra dev
failtale.be

Free Hoptoad/Airbrake alternative which can capture exceptions from any platform. It comes with a Rails notifier and a RESTful API...

stackoverflow.com

When you double-tap a string of text on an iPhone or iPad a complicated context menu for copying and...

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

You can say: $(element).is(':visible') and $(element).is(':hidden') jQuery considers an element to be visible if it...

Here is how to switch your Selenium to Chrome: Make sure you've got a recent version of chromedriver in...

If you have to build a filename (e.g. for use in downloads) that contains user input, keep in mind that...

github.com

When CoffeeScript was added to Rails 3.1 they forgot one very important part, the ability to use it when responding...

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

makandra dev

If you want to enforce soft tabs (spaces instead of tabstops) in Vim put this into your ~/.vimrc (Linux) or...

You probably already manage servers you often connect to inside the ~/.ssh/config file. What is nice: you may define alias...

If you manipulate the DOM with JavaScript and your page contains nested elements with position: relative, chances are Internet Explorer...

Capybara allows you to select DOM elements, e.g. by using field, find_field(...) or field_labeled(...): role_select = field_labeled...

weblog.rubyonrails.org

Asset pipeline, HTTP streaming, jQuery as default framework, auto-reversable migrations, identity map for ActiveRecord. Ruby 1.8.x support will...

Remember that your controller actions share the same method space with private methods defined in ActionController::Base. If your controller...

Although regular expression syntax is 99% interchangeable between languages, keep this in mind: By default, the dot character (".") does not...

If you want to play music or sounds from a browser, your choice is to use either Flash or the...

thrivingkings.com

An alert alternative for jQuery that looks good. Apprise is a very simple, fast, attractive, and unobtrusive way to communicate...

Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...

alfajango.com

We can now plug into every facet of the Rails jQuery UJS adapter, binding to custom events, and even customizing...

If you save a non-standard object (not a String or Fixnum, etc) like the AwesomeClass from your application in...

You most likely have a form element inside another form element. Don't do that. Ever. Firefox and Chrome will...

There is no way to do it. This behavior is by design. You lose.

Within an event handler, there are multiple methods to cancel event propagation, each with different semantics. event.preventDefault() Only prevents the...