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...

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...

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...

weblog.rubyonrails.org

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

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...

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

travisonrails.com

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

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...

You most likely have a form element inside another form element. Don't do that. Ever. Firefox and Chrome will...

rails.lighthouseapp.com

This is a bug in Rails 2.3.11 which will be fixed in a future maintenance release. Until then you can...

makandra dev
github.com

Our new scope-based authorization gem for Ruby on Rails has been released. This might one day replace Aegis as...

If you are using RVM on a Mac and cannot enter 8+ bit characters on an IRB or Rails console...

linux.die.net

Reading a URL via GET: curl http://example.com/ Defining any HTTP method (like POST or PUT): curl http://example.com/users/1...

User.active.to_sql Rails 2 Use either the Edge Rider or fake_arel gem to get #to_sql backported...

blog.plataformatec.com.br

It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...

apidock.com

Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead.