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
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
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: paypal_adaptive, ruby on rails 3Upgrade 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 3.1, rails 3.1 upgrade, Ruby on RailsRails 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: rails json, rails xml, Ruby on Rails, xml to json