makandra dev

rake stats # => LOC per controllers, models, helpers; code ratios, and more rake notes # => collects TODO, FIXME and...

faviconit.com

Eduardo Russo was tired of complex favicon creation and created his own favicon generator. It's really easy and allows...

I had to deal with JavaScript Undefined Error while accessing a specific CKEditor instance to fill in text. Ensure everything...

Ask before leaving an unsaved CKEditor Vanilla JavaScript way, but removes any other onbeforeunload handlers: $(function(){ document.body.onbeforeunload = function() { for(editorName...

If you have a text that is edited by WSYIWYG-Editor but want some length checking nevertheless, you need to...

After I upgraded to Mac OS X Mavericks, I regularly got this error message when running Cucumber features with Selenium...

Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...

makandra dev
github.com

Alternative approach to form models.

makandra dev
martinfowler.com

Great slide deck about various forms of refactorings.

If you have a FooController and also have a layout app/views/layouts/foo.html, Rails will use this without being told so.

TLDR: This card explains which threads and processes interact with each other when you run a Selenium test with Capybara...

tl;dr: Using has_many associations with a :through option can lead to lost or duplicate records. You should avoid...

We've since created ActiveType which has a restricted subset of Virtus' features. It might be enough for your needs...

Say you have a User with a Carrierwave attribute #avatar: class User < ActiveRecord::Base mount_uploader :avatar, AvatarUploader end

Use protocol independent URLs whenever possible so that the browser will choose the protocol related to the protocol which the...

divshot.com

Motion is quickly becoming one of the most important emerging techniques in building a quality user experience on the web...

uxmatters.com

Advice for address forms that work with address structures from multiple countries.

If you need to enable NewRelic monitoring on certain machines within the same Rails environment, a simple solution is to...

Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...

So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

makandra dev
github.com

Chrome extension that shows all info from your rails log (like parameters, response times, view rendering times, DB requests) inside...

stackoverflow.com

If you want to have routes that are only available in tests (e.g. for testing obscure redirects), you can use...

Working with lists in Javascript is painful because the native Array class is so poorly designed. One way to reduce...