Sublime Text 2 – How to Create Snippets

Recently I changed editors from Rubymine to Sublime Text 2 (due to Rubymine being a bit slow on big projects). Anyway creating snippets and new short-cuts can turn you into the speediest of programmers. Here I look into creating a basic snippet, along with instructions on how to bind a keyboard shortcut to that snippet.

Easy Client-Side Form Validation for Rails 3.1

Easy client-side form validation in rails 3.1

Form validation can be annoying, with all the error message styling and all. Heres an easy solution I just stumbled across. Note that this works best for when starting new apps, but should still plugin quite nicely into old ones.

PayPal Adaptive with Rails 3

Screen Shot 2011-10-19 at 12.37.56 PM

As usual the PayPal documentation is quite messy and disorganised and thus I thought I’d document how I managed to get PayPal Adaptive working on a marketplace style website.

Tagged: ,

Upgrade Rails 3 to 3.1

This is a comprehensive guide to upgrading a Ruby on Rails 3 application to Rails 3.1. It also includes instructions for updating the compass gem. Lets get started!

Tagged: , ,

Rails API’s – Rendering Flexible XML and JSON

When creating API’s, you want to make it so people can easily make remote requests and in return be given well structured data. Here I discuss why Rails to_json and to_xml methods don’t quite cut it, and what to do instead.

Tagged: , , ,
Page 1 of 912345...Last »