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

httpd.apache.org

If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...

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

The Edge Rider gem will define a method collect_ids on your ActiveRecord models, scopes, integer scalars and collections, which...

To display a list of your current Git remotes and their endpoints, you can say git remote -v

makandra dev

If you want to convert a README.rdoc file to HTML, say this from a shell: rdoc README.rdoc

ActiveRecord gives you the :include option to load records and their associations in a fixed number of queries. This is...

ActiveRecord models know how to cast a given string to the type of a given attribute (or column).

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

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

pivotallabs.com

One of the thornier problems in our workflow is knowing when assets are delivered from the designer and keeping them...

makandra dev

When installing RMagick you may get an error messages like this: Version 2.13.1: checking for Ruby version >= 1.8.5... yes

I prefer using Opera's "User mode" to toggle an outlining of HTML elements quickly. This helps greatly when you...

apidock.com

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

makandra dev
github.com

Artifice allows you to replace the Net::HTTP subsystem of Ruby with an equivalent that routes all requests to a...

There is a nasty bug in all version of Rails 2 and some versions of Rails 3.x where two...

makandra dev

If there is some weird margin at the top of your page for no apparent reason, chances are one of...

benmabey.com

Bryan talked about the differences between imperative and declarative scenarios. In my opinion, both styles have benefits and should be...

joemaller.com

Google’s Font Directory and API for web fonts could have a transformative effect on how we read the web...

At times, it might be unavoidable to have different CSS rules for Internet Explorer than for sane browsers. Using Sass...

When using ActionMailer, you can set an array of email addresses as recipients. If this array is generated by e.g...

jeffkreeftmeijer.com

Back when Steak was first released, Capybara didn’t have any of the nice RSpec helpers it does now. A...

redmine.org

Phillip Koebbe from Ruby on Rails suggested inserting following code between the "bootstrap" and "initialize" sections of enviroment.rb. This hack...

makandra dev

The information in this card is only relevant for Rails 2.3-era apps. This note gives a quick introduction into...