makandra dev
blog.getbootstrap.com

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

It smells. Rethink your code design. Code example with makandra/has_defaults: class Post < ActiveRecord::Base has_defaults tags: [] # field in db...

Ruby has Enumerable.find(&block), which returns the first item in the collection for which the block evaluates to true.

To update your Rubygems to the latest available version, type the following: gem update --system Note that you have a...

Spreewald comes with a selector_for helper that matches an English term like the user's profile into a CSS...

On Ruby 1.9+, standard ruby character classes like \w, \d will only match 7-Bit ASCII characters: "foo" =~ /\w+/ # matches...

You may encounter problems with passenger starting an application with an updated rails. If you find an error like this...

To check which rubygems versions your different rbenv rubys are using, you can use this small bash script:

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

Use base_class. This traverses up the hierarchy until it encounters either a class inheriting from ActiveRecord::Base or

CTRL + SHIFT + ALT + N Search for any symbol in your application, like CSS classes, Ruby classes, methods, helpers etc...

Jasmine comes with two matchers that test for equality. The first is toBe: expect(first).toBe(second) toBe passes when...

The migration DSL now supports adding and removing foreign keys. They are dumped to schema.rb as well. At this time...

marcparadise.com

When you the following error: zsh: corrupt history file /home/marc/.zsh_history You can try and fix your history file by extracting...

leomayleomay.github.io

Your after_commit callbacks will not know about changes, as Rails discards them when committing. The linked article shows a...

makandra dev

This blew my mind today: 12 Little-Known CSS Facts 12 Little-Known CSS Facts (The Sequel) Please make sure...

nateberkopec.com

Very detailed guide to caching Ruby on Rails. Goes well with the official Rails guide on caching.

If you see a stacktrace beginning with lines like this: E, [2015-07-16T09:23:10.896146 #23308] ERROR -- : app...

If a SOAP API expects you to call a remote method with arguments of complex types, Savon lets you manually...

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

In my RubyMine I have recorded two macros for debugging and linked them to some keyboard shortcuts. Since I believe...

Today I ran into this: Invalid gemspec in [/usr/local/rvm/gems/ruby-1.9.3-p194/specifications/ZenTest-4.9.3.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]. You need a newer Rubygems version. Try...

duri.me

Small web application where you can upload an image (PNG, JPEG, GIF) and generate a base64-encoded version of it...