github.com

Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...

Given the problem you have a new column postion and that column should be updated for all existing rows with...

Generally for nested forms, a blank form is placed below all other existing object forms. If you would like to...

Defining a custom to_json method for your classes can be useful. Do it properly or you will "randomly" get...

makandra dev
stackoverflow.com

Using git rebase can be painful but luckily you can resort to cheating with git reset and committing anew.

When adding a new field to your model's database table, don't set any defaults in the database.

web.archive.org

Single step and slow motion for Cucumber scenarios can come in handy, especially in @javascript scenarios. # features/support/examiners.rb AfterStep('@slow_motion...

In order to open a MySQL shell without the need to enter user and password, you can say the following...

commandlinefu.com

The colors in Rails log files are helpful when watching them but, since they are ANSI color codes like ^[[4...

The technique described in this card has an important caveat: The result of GROUP_CONCAT is truncated to the maximum...

You can use heredoc to avoid endlessly long lines of code that nobody can read. Heredoc strings preserve linebreaks and...

awsdocs.s3.amazonaws.com

There is a new card about how to do this with the new AWS Command Line Interface

agileweboperations.com

features are pre-sold without any option to negotiate what’s important and what may be left out, you inevitably...

makandra dev

When you run rake db:create and get this error message Couldn't create database for {"encoding"=>"utf8", "username"=>"root...

stackoverflow.com

Most likely you run rake and your code is causing an exception which is not the one shown in your...

whatsmydns.net

whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP...

Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...

github.com

ExecJS lets you run JavaScript code from Ruby. It automatically picks the best runtime available to evaluate your JavaScript program...

makandra dev

Here is a way to create a duplicate of one database, with all its tables and their data, under a...

If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...

There is a bug in Rails 3's dbconsole script, which makes the following command open a database console for...

Remember how Rails 2 came with an awesome feature that broke all code using Time.now or Time.parse? This behavior is...

Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...

Do you have page caching enabled for the development environment and there are cached pages lying around in public/?