Joshua Paling

How to show latest products in Spree Sep 10 2013

For a spree project I'm working on, I needed a latest products page. Since I'm new to spree/rails, it took me a while, but it's super easy once you know how. Here's how it's done, for any other newbies wanting to display most recent products in spree...

read more

Install Postgres on a Media Temple DV 4.0 Aug 16 2013

If you've reached this post, you probably already know… Postgres is generally considered better than MySQL. MySQL is more common, and therefore a bit easier to get up and running (it'll come out of the box with a lot of hosts). Here's how to setup...

read more

Part 1 - Ruby :symbol WTF's Aug 16 2013

This post is part of a series

Shortly into Part 1 of the rails install fest series, you'll come across Ruby symbols. Symbols are those things prefixed by a colon, such as :posts, :title and :body, which we come across in our database migration in...

read more

How to install Rails on a Media Temple DV 4.0 Aug 7 2013

First up, the date today is 6 Aug, 2013. I'm working on a Media Temple DV 4.0, with Plesk 11 installed. I'm running CentOS 5.8, using Apache as my webserver. If those details don't match up closely with what you're using, ignore this post!

The first...

read more

Solution to Passenger running as user 'nobody' and group 'nobody' Aug 7 2013

The error: When setting up a Rails site with Passenger, you get the following message in your browser:

This web application process is being run as user 'nobody' and group 'nobody' and must be able to access its application root directory '/var/www...

read more

How to make a dump of an sqlite database in Rails Aug 6 2013

1) Open Terminal, and cd into your app's db directory, where your sqlite database files are stored.

cd /path/to/rails_app/db

2) Run this command (obviously, you can change the parameters accordingly - the first is the name of your existing database...

read more

Part 1 - Going Live - Heroku WTF's Aug 3 2013

This post is part of a series

Here we'll go over 'WTF' moments from the last few steps of Part 1 - publishing our blog on Heroku.

It happens pretty fast - you sign up for Herkoku, install the Heroku toolbelt, run a few commands at the terminal and...

read more

Superclass method for DRY model joins in CakePHP Jul 28 2013

Sometimes in your CakePHP apps, you'll need to ditch the Containable behaviour, and use raw joins instead. The problem is, specifying joins across a few tables gets pretty verbose, and the code is anything but DRY. Here's a little method for your AppModel...

read more

How to run a single CakePHP test case in the browser Jul 20 2013

The CakePHP Cookbook mentions that you can filter test cases from the command line, so you don't have to run ALL tests every time.

What it doesn't mention is that it's easy to do the same thing in the browser.

So, if you're a CakePHP developer wondering...

read more

After InstallFest - Next Steps Jul 16 2013

So, you've finished the InstallFest tutorial series. You're ready to stand on your own two feet, ditch the hand-holding, and move forward with good old fashioned Google and Persistence. Here's some suggestions on what to do next.

Most Important

read more

Prev | Page 5 of 6 | Next