When you generate a URL in a mailer view, ActionMailer will raise an error unless you previously configured it which...

Install Ruby from the Ubuntu repository: sudo apt-get install ruby ruby-dev \ ruby is the meta package. If you...

Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.

We're adding a script console-for to open a remote Rails console with one command. Also have a look...

You probably need to activate X-Sendfile.

Ever wondered if there is a reverse for Rails' .each(&:to_s) idiom? Turns out there is... You probably already...

To obtain a list of Passenger processes with their application directories and memory usages, you can say sudo passenger-memory...

makandra dev
gist.github.com

When you encouter an unsafe string that you actually made html_safe before, perhaps you called one of the following...

github.com

When CoffeeScript was added to Rails 3.1 they forgot one very important part, the ability to use it when responding...

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