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...
By default, Rails' validates_uniqueness_of does not consider "username" and "USERNAME" to be a collision. If you use MySQL...
If you are trying to inspect timings in JavaScript, you can use console.time and console.timeEnd which will write to your...
Article about implementing authentication (current_user) and authorization (access rights) in AngularJS. Has an surprising amount of practical and understandable...
When you use a belongs_to or has_many macro you might be surprised that the methods that it generates...
Development environment setup Rails Composer Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server...
To print a colored full-width bar on the bash, use this bash script expression: echo -e '\033[37;44m...
rake stats # => LOC per controllers, models, helpers; code ratios, and more rake notes # => collects TODO, FIXME and...
Just found out about a great feature in Rails that seems to be around since Rails 2. Start a console...
Browsers usually cache favicons. If you update the favicon of your web site and want all visitors to see the...
Eduardo Russo was tired of complex favicon creation and created his own favicon generator. It's really easy and allows...
String#indent is not a standard Ruby method. When you use it, be sure to know where this method comes...