makandra dev
robots.thoughtbot.com

Getting started with Ruby extensions in C.

makandra dev

If you want to rename a key of a Ruby hash, this could help you out. Just put it into...

github.com

delocalize provides localized date/time and number parsing functionality for Rails.

First of all: You could just use RVM which would make the pain go away. If for some reason you...

github.com

You can use the whatlanguage gem to detect the language of a Ruby string. Note that it also has not...

github.com

This gem is designed to provide CSS views to Rails, and a process to concatenate and minify these files to...

Call with the server's hostname (and user if you have no SSH agent), e.g. install-gems-remotely my.server.com

makandra dev

There are two distinct ways of commenting Haml markup: HTML and Ruby. HTML comments This will create an HTML comment...

makandra dev

This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...

Our gem Mail Magnet allows you to override e-mail recipients in ActionMailer so all mails go to a given...

There will probably be better solutions as we become more experienced with using Bundler, and more command line tools become...

Rails 3, 4, 5, 6 config/application.rb config/environment.rb before the initialize! call (we don't usually edit this file)

The state_machine gem ships with a scope with_state. This scope has some problems in complex queries or scope...

makandra dev

Update RubyGems and Passenger Bundler requires Rubygems >= 1.3.6. Run gem update --system if you have an older version.

Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...

github.com

Boolean attributes can now be set by appending "which", "that" or "who" at the end: Given there is a movie...

When working with times and dates in Rails applications, you need to deal with the following problem: In Rails, Time...

makandra dev
rjb.rubyforge.org

rjb is a bridge software. It connects Ruby and Java.

regular-expressions.info

You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...

popthis is awesome when used with inaction_mailer. Setup inaction_mailer Install the gem: sudo gem install popthis

Capybara does not play nice with sites that have some actions protected by SSL, some not. A popular way to...

makandra dev
github.com

Our awesome collection of rspec helpers (formerly known as "spec_candy.rb") is now available as a gem. It works, it is...

gnuu.org

YARD 0.6 adds the ability to serve documentation for gems as well as the current project with yard server. Just...

makandra dev
ruportbook.com

Ruport’s acts_as_reportable module provides support for using ActiveRecord for data collection. You can use it to get...