makandra dev
devdocs.io

DevDocs combines multiple API documentations in a fast, organized, and searchable interface. Here's what you should know before you...

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

slideshare.net

Interesting talk about a team that integrated automated security testing into their BDD workflow. There is also a video of...

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

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

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

If you need a postgresql extension for your database it isn't a good idea to give your applications database...

You can include files from app/assets or from the public folder with javascript_include_tag. The subtle difference that tells...

As you most likely know validates_uniqness_of :foreign_id does not allow nil values by default.

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

If you hover over the text of a card, you will now see EDIT links at the top right corner...

A word of caution There should rarely be a reason for you to split up config/routes.rb. If you need to...

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

Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger

makandra dev

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

In tests, it is sometimes useful to create records with specific ids. On PostgreSQL this can cause problems: Usually, PostgreSQL...

azimi.me

Interesting hack to move expensive JSON.parse calls out of the main thread.

makandra dev

To change RAM size, VDISK size or VCPU count of an openstack instance you have to use nova resize. You...

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

If you are writing any amount of Javascript, you are probably using closures to hide local state, e.g. to have...

makandra dev
github.com

The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it...

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