You can use String#demodulize from ActiveSupport: "ActiveRecord::CoreExtensions::String::Inflections".demodulize # => "Inflections" "Inflections".demodulize # => "Inflections"
Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...
Today, I ran into trouble on a fairly fresh installed VM, running Ubuntu. I tried to bundle install and got...
When refactoring a sequence of steps to a new, more descriptive step, you can use the steps method and Ruby...
It's the last bugfix release. We will get another year of security fixes, then no more patches.
ActiveSupport::Memoizable will be removed from Rails and has a lot of strange caveats that will ruin your day.
Rack has a limit for how many form parameters it will parse. This limit is 65536 by default.
I posted a solution which is awesome and also does natural sorting.
Sometimes you need to remove high Unicode characters from a string, so all characters have a code point between 0...
Ruby 1.9.2 is very slow when loading files, especially starting Rails servers or running specs takes forever.
Always use simply require 'spec_helper' If you mix it up like require 'spec_helper' require File.dirname(__FILE__) + '/../spec_helper'
ActiveSupport >= 3 has Date.parse('2011-02-10').beginning_of_quarter #=> 2011-01-01 Date.parse('2011-02-10').end_of_quarter...
If you're suffering from a huge de.yml or similiar file, cry no more. Rails lets you freely organize your...
Why string sorting sucks in vanilla Ruby Ruby's sort method doesn't work as expected with special characters (like...
Introspect the Ruby Heap by indexing, counting, locating references to and detaching (in order to release) objects.
When using the asset pipeline your assets (images, javascripts, stylesheets, fonts) live in folders inside app: app/assets/fonts app/assets/images...
A collection of snippets to generate random number under certain conditions, as: gaussian with a specified distribution triangular distribution
Geoffrey Grosenbach has created Gruff for easily plotting graphs. It is written in pure Ruby and integrates with Rails applications...
If you need a gem for a certain purpose, be sure to check this site. The rankings are determined by...
Consider the following HTML & CSS: ^ img { background-color: red; } div { border: 1px solid black; } This will leave a margin of...
If your project uses another version than your default Ruby, RubyMine will give you incorrect inspections, for example.\
When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...
Slides presenting ways to integrate the ideas of Aspect-Oriented Programming in Ruby. Outline Why Aspect-Oriented Programming?
If you get an error like this ... can’t find executable rails for rails-3.2.3 (Gem::Exception) ... one of several...