shopify.com

Most web applications contain several examples of state machines, including accounts and subscriptions, invoices, orders, blog posts, and many more...

yehudakatz.com

Yesterday, there was a blog post entitled “What the Hell is Happening to Rails” that stayed at the number one...

geordi, our collection of awesome shell scripts, has been extended by three scripts to help you call RSpec or Cucumber...

(Rails has a method ActiveRecord::Relation#merge that can merge ActiveRecord scopes. However, its behavior has never been clear, and...

When using the resource_controller gem you often hook onto events like this: update.before do do_something end

Note: In Rails 3+ you can use Array.wrap instead of the solution here. In the past you could use Array...

devblog.imedo.de

XPath matchers can be combined with CSS-selector matchers. This is really useful if not, for example, the content of...

Update: Staticmatic will not be further developed. They suggest to switch to middleman. If you need to make a static...

When you do a git add . and have deleted files, git won’t stage them to be commited (as deleted...

blog.jayfields.com

Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...

makandra dev

This card shows you how to center a float horizontally in CSS. Also: find out what techniques are available for...

Since May 2011 we are cutting new gems using Bundler, which is less painful than cutting gems using Jeweler. You...

Capybara allows you to select DOM elements, e.g. by using field, find_field(...) or field_labeled(...): role_select = field_labeled...

weblog.rubyonrails.org

Asset pipeline, HTTP streaming, jQuery as default framework, auto-reversable migrations, identity map for ActiveRecord. Ruby 1.8.x support will...

Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...

We recently decided to put static content for HouseTrip.com to Amazon Cloudfront for a faster user experience. This happens fully...

makandra dev

You know that you can collect an array as groups using in_groups or in_groups_of. Maybe you want...

Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso...

Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done...

When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...

travisonrails.com

You set a flash message and it shows up as it should. However, it is displayed again the next time...

agileweboperations.com

User Stories should describe what a user wants the system to do. Purely technical tasks should usually be implemented as...

alfajango.com

We can now plug into every facet of the Rails jQuery UJS adapter, binding to custom events, and even customizing...

If you save a non-standard object (not a String or Fixnum, etc) like the AwesomeClass from your application in...