songit.posterous.com

RubyGems 1.6.0 has undergone some changes which may cause Rails 2.x applications to break with an error like this...

makandra dev
imagemagick.org

Paperclip uses the imagemagick resize options like 100x50> , 100x50<, 100x50# etc to resize images. See the link what options are...

On 32bit systems, the maximum representable Time is 2038-01-19 03:14:07 in UTC or 2038-01-19...

This tool is used on our application servers (and called when deploying) but it also works locally. Just call dumple...

The code below shows a method #validate which uses Nokogiri to validate an XML document against an XSD schema. It...

Note: Consider not doing this. Use form models or vanilla methods instead. The :conditions option for Rails associations cannot take...

When defining a trait using the Modularity gem, you must take extra steps to define constants to avoid caveats (like...

In case https://www.rubydoc.info/ is to slow or offline, you can also read a gem documentation offline. Start a server...

Are you adding a "Then show me the page" and re-run Cucumber whenever there is a failing scenario? Don...

It's that simple to allow one of your Linux users to run a single command as UID 0:

Call geordi clean from a project root to remove unused and unnecessary files inside it. This script is part of...

So you added a new callback to your model that (e.g.) caches some data when it is saved. Now you...

You can usually just use the eq matched to compare two numbers: expect(deal.total).to eq(120)

github.com

Ruby's net/http is setup to never verify SSL certificates by default. Most ruby libraries do the same. That means...

Use the htmlentities gem. Encoding works like this: require 'htmlentities' coder = HTMLEntities.new string = "<élan>" coder.encode(string) # => "&lt;élan&gt;"

Use the Launchy gem: Launchy.open('http://www.ruby-lang.org/')

When a has_many association basically serves to store a list of associated strings (tags, categories, ...), it can be convenient...

apidock.com

E.g. when you're using a tagging gem, you have seen virtual attributes that get and set a string array...

makandra dev

In order to go back one page in your Cucumber tests, you can use the following step definition for Capybara...

Plugins (and gems) are typically tested using a complete sample rails application that lives in the spec folder of the...

To install webmock 1.5.0: sudo gem install webmock --version "=1.5.0" or sudo gem install webmock -v "=1.5.0"

As a user of Bundler you have spent significant time looking at this message: Fetching source index for http://rubygems.org...

Given this class: class Foo class Bar end end If you want to clean up this code with the modularity...

This is a bash script for those of you who need to install all gems for all projects (e.g. to...