SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...
So you want your Ruby script to install missing gems instead of dying? Take this method: def installing_missing_gems...
You are probably using Ruby 1.8.7 with a too recent versions of Rubygems. Downgrade your Rubygems to the latest version...
React.js is a relatively new Javascript templating engine that has two-way-bindings like AngularJS or Batman. The interesting idea...
MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released...
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...
better_errors is an awesome gem for enhanced error pages in development, featuring a live-REPL for some light debugging...
If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...
If you come across an (older) application that is using Prototype instead of jQuery, you may often see events bound...
Check out the jsFiddle Demo. CSS .absoluteCenterWrapper { position: relative; /* Declare this element as the anchor point for centering */ } /* Positioning */ .absoluteCenter...
Your development machine is usually on a very good network connection. To test how your application behaves on a slow...
Batman is an alternative Javascript MVC with a similar flavor as AngularJS, but a lot less features and geared towards...
When you call a method on an object, Ruby looks for the implementation of that method. It looks in the...
Browsers usually cache favicons. If you update the favicon of your web site and want all visitors to see the...
Make your custom web font available Add to ckeditor/config.js CKEDITOR.editorConfig = function(config) { config.contentsCss = [ '/assets/myCkeditorStyles.css', // any other file to encapsulate custom...
If you get this error while trying to resize an openstack instance: # nova resize fooinstance 16 --poll ==> /var/log/nova/nova-scheduler.log <==
There seems to be no way to use therubyracer -v '0.11.4' and libv8 -v '3.11.8.17' on OS X Mavericks.
When you do something like this in your code: def var_value @var ||= some_expensive_calculation end
We've since created ActiveType which has a restricted subset of Virtus' features. It might be enough for your needs...
In Ruby, classes and modules are called constants. This card explains how Ruby resolves the meaning of a constant.
CarrierWave attachments have two distinct methods #url and #path which appear to behave the same: document.file.url # => /storage/documents/4/letter.doc document.file.path # => /storage/documents/4/letter.doc