SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...
When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...
I use this to simulate the (non-existing) :last-letter CSS pseudoclass, e. g. to insert a tombstone at the...
Since version 34, Chromium/Chrome ignores the autocomplete="off" attribute on forms or input fields. Recent versions of other browser do...
The error unexpected 'x' after 'DESCENDANT_SELECTOR' (Nokogiri::CSS::SyntaxError) (where x may be basically any character) occurs when the...
There are 3 built-in file descriptors: stdin, stdout and stderr (std=standard). (You can define your own, see the...
config.action_controller.action_on_unpermitted_parameters enables logging or raising an exception if parameters that are not explicitly permitted are...
When using @media CSS queries, Internet Explorer 8 and below will fail to respect them. Though there are several options...
Edge Rider gives your relations a method #origin_class that returns the class the relation is based on.
React.js is a relatively new Javascript templating engine that has two-way-bindings like AngularJS or Batman. The interesting idea...
Spring is a Rails application preloader. When debugging e.g. the rails gem, you'll be wondering why your raise, puts...
Programatically invoke Rails generators Require the generator, instantiate it and invoke it (because generators are Thor::Groups, you need...
So you have a restangular collection and you want to remove an element from it, after you've successfully deleted...
With this command you can initiate an application restart without touching restart.txt. Unlike touching restart.txt, this tool initiates the restart...
If you regularly get ActionView::MissingTemplate exceptions, maybe some bot visits your site requesting silly formats like: http://www.rails-app.com/makandra.html-username-2000...
If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...
Sometimes you may want to print files from the command line, especially when you have lots of them.
All the hidden and not hidden features of Git and GitHub.
Use the following command to test if a server (in this example: makandra.com on port 443) uses Perfect Forward Secrecy...
When using TextMate2 with the cucumber bundle, it does not recognize step definitions (e.g. custom_steps.rb) as such but believes they...
Splitting a long method into sub methods is easier in instances since it is in classes. Since...
When you, as a developer, look at the choices used to build a particular application, you’re blown away at...
On Ubuntu, you can scroll horizontally with your mouse wheel when holding the Shift key while scrolling.
Your development machine is usually on a very good network connection. To test how your application behaves on a slow...