Configuring Spree Commerce to use the British Pound currency

I’ve been playing around with Spree for a couple of weeks and ran into a slightly confusing issue wrt. using a non-US Dollar currency, in my case British Pounds.

At the time of this writing, using Rails 3.1.x and Spree 0.70, the following steps will enable a ‘£’ (a pound sterling) sign to be displayed.

Add the I18n gem to your Gemfile and run bundle install:

gem 'rails-i18n'

Open a shell and cd into the config/locales folder of your Spree/Rails project. Download the British locale file:

wget https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/en-GB.yml

You’ll also need copy the contents of Spree’s British I18n file into the bottom of of your config/locales/en-GB.yml file.

Edit your config/application.rb and set your default locale to ‘British’:

config.i18n.default_locale = :"en-GB"

Create a new file in config/locales/en-GB_numbers.yml with the following contents:

---
en-GB:
number:
currency:
format:
format: "%u%n"
unit: "£"
precision: 2
separator: '.'
delimiter: ','

Spree uses the above file to set the currency settings. Be aware that Spree is currently a single currency application.

Using iPhone Reminders & Siri to go grocery shopping

Screenshot of Siri & Reminders With Siri and iPhone Reminders I’ve discovered an easy way to maintain a shopping list of stuff to buy when I’m next at my local supermarket.

Here’s how it works. By default, Siri knows about your Home and Work addresses, but you can tell it about the supermarket too. Google the address of your local supermarket.
Go into your iPhone Contacts app and add the address of the supermarket. In my case I create an entry called “Asda”.

Now I can tell Siri: Remind me to buy pasta when I get to Asda.

As soon as I walk into Asda I get my reminder pinging me. Works every time.

Note: you can manually create shopping reminders too by selecting the “Asda” (or whatever) contact in the “At Location” field.