clipboardjs.com

We used zeroclipboard.js in some of our projects but now we switched to clipboard.js because it does not rely on...

makandra dev
github.com

Improve geordi cucumber: Only attempt @solo run when the specified files contain the @solo tag, skip @solo run if any...

When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...

So you downloaded a theme for Chrome a while ago and don't remember which one it is?

to create a Gallery that has a name and has_many :images, which in turn have a...

jqueryui.com

UI sortable helps reordering items with drag 'n drop. It works quite fine. Proven configuration for sorting table rows

developer.mozilla.org

When building a form with a file select field, you may want to offer your users a live preview before...

To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.

Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...

There are a million ways to center s or text in CSS, horizontally or vertically. All the ways are unsatisfying...

Once Rails knows a given string is html_safe, it will never escape it. However, there may be times when...

Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...

github.com

When a method has keyword arguments, Ruby offers implicit conversion of a Hash argument into keyword arguments. This conversion is...

makandra dev
blog.getbootstrap.com

Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join...

aws.amazon.com

I am happy to announce that this information is now available in JSON form at https://ip-ranges.amazonaws.com/ip-ranges.json. The information...

Use form models to handle this problem Or soften the validation to validates_presence_of :parent

makandra dev
getmdl.io

CSS (+ some Javascript) framework, implementing Google's material design for static web pages. Can be used for plain websites without...

Disabling auto-complete in login forms is probably a bad idea, since it encourages weak passwords. If you are still...

Rails comes with grouped_collection_select that appears to be useful, but isn't. As an alternative, consider the flat...

Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead.

github.com

jquery-placeholder is a simple jQuery plugin that enables form placeholders in browsers that do not support them natively, i.e...

To use a form model with devise, you can simply override #resource_class in a controller. A typical use case...

edgeapi.rubyonrails.org

Starting from Rails 4.0, you can use a special form options helper called #collection_check_boxes. It behaves similar to...

When using threads, you must make your code thread-safe. This can be done by either locking (mutexes) all data...