github.com

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

Starting with Rails 4.0, when you get an exception reported via the ExceptionNotification gem, you will only see a very...

github.com

Rails 5 will introduce ActiveRecord::Relation#or. On Rails 4 and 3.2 you can use the activerecord_any_of gem...

To safely transport an arbitrary string within a URL, you need to percent-encode characters that have a particular meaning...

When starting a project we always make a good estimate of all known requirements, and plan budgets and available developers...

digitalocean.com

I recommend install Node.js using nvm. This way you can have multiple Node versions in your ~/.nvm. You also won...

andismith.com

If you need to upgrade code that uses the old jQuery methods bind, delegate, live, unbind and die, the attached...

makandra dev
blog.getbootstrap.com

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

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

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

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

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

github.com

MarcoPolo shows your app name and environment in your console prompt so you don't accidentally break production Officially supporting...

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

makandra dev
bootswatch.com

Free Bootstrap theme resembling Material Design. Bootswatch offers Sass and Less files, so the theme can easily be integrated into...

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

When running capybara with Chrome you might start seeing frequent "no alert open" errors when trying to interact with browser...

leomayleomay.github.io

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

nateberkopec.com

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

Large projects usually have large test suites that can run for a long time. This can be annoying as running...

makandra dev
getmdl.io

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

When using ORDER BY "column" in PostgreSQL, NULL values will come last. When using ORDER BY "column" DESC, NULLs will...

makandra dev
eager.io

SmartUnderline is an open-source JavaScript library which uses clever tricks to draw underlines in a more beautiful and readable...