makandra dev

When dealing with time zones in Rails, there is one key fact to keep in mind: Rails has configurable time...

developer.mozilla.org

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

workaround.org

You will need to look here and find your own device. Look for the "bootable CD" download, which will give...

Cucumber's docstrings let you add long strings to a step like this: # foo.feature Given this text: """ First line

Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...

ombulabs.com

Tool to show you which gems are slow to load: ➜ git:(master) ✗ bundle exec bumbler [################################################# ] (49/65) travis-lint...

Awesome is a very good tiling window manager that provides neat features like automatic layouting of windows, good multi-display...

You can use JavaScript to get or set cookie values on the client. Using the vanilla JavaScript API

puppet.com

Don't use exec without user parameter If you use exec without user parameter, the command will get executed as...

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

If you want to inspect the compiled code of your erb (or haml) templates, you can run the following code...

Don't write resources :people, :concerns => :trashable Write resources :people do concerns :trashable end Why Writing a controller...

reddit.com

Chrome has discontinued support for 32-Bit Linux builds and this might break your apt-get update.

TL;DR There are three dimensions you can control when scoping routes: scope module: 'module', path: 'url_prefix', as: 'path...

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

Validations should be covered by a model's spec. This card shows how to test an individual validation. This is...

A HTTP 302 Found redirect to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to...

stackoverflow.com

From Rails 3.0.9, there is a method Hash#to_query that will turn a Hash into a query string:

I got this error when running Rails 2.3 tests for Rails LTS. More stacktrace: NoMethodError: undefined method `cache' for Gem...

makandra dev

Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...

github.com

Using Scenic, you can bring the power of SQL views to your Rails application without having to switch your schema...

github.com

Note The maintenance mode is enabled on all application server as soon as the file /public/system/maintenance.html is present. Installation

techblog.netflix.com

You login to a Linux server with a performance issue: what do you check in the first minute? uptime

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