rails

Recurring billing of expired credit cards

by nigelramsay.

At Sharesight [www.sharesight.co.nz] we operate an online, subscription based portfolio management for DIY share market investors. For convenience, most of our customers choose to pay by credit card, and we bill them on a recurring basis, either...

Macbook Pro Speed Test

by marcus.

With the Sharesight test suite (ruby/rails/mysql && rake test), i tested the performance of my the new MBP on Snow Leopard.

I save 16 seconds per run - its going to take a while to pay for itself.... But about 22% faster, which is not too bad.

...

using git submodules for plugins

by marcus.

# first remove your copy and paste plugin....

git rm -r vendor/plugins/xxxxxxgit commit

now you are ready to add the submodule

git submodule add git://your_git_repo/xxxxx.git vendor/plugins/xxxxxgit commit
To load the submodule, you need to
git...

serving php from a rails app with passenger

by marcus.

We have a situation where we want one domain which serves a rails app at root and also has a wordpress blog served within the main site.

yours.com/ -- served by railsyours.com/blog -- served by php

To configure this in apache,

Installing Ruby Enterprise Edition on Mac OSX

by marcus.

This is quite trivial and very easy. I wanted to use the same version of ruby on my mac as is running on our production servers (Ruby Enterprise Edition).

Firstly, do a

gem list
and keep this information. You will need to reinstall all your gems...

rails legacy database migration

by marcus.

Just migrated a legacy database into a rails compliant database - and wrote this nifty DSL script to help out....

The rake task generates the Hash data for the table creation, data insert and rollback scripts.

Once you run the rake task, paste the...