Arctic-kiwi-logo
Category:

Ruby on Rails

DividendMax site launch

Jonathon Horsman Oct 31 0 comments

With banks providing providing such appalling savings rates and share prices and historical lows, never before has investing in the share market looked so attractive.

Read More...

How to tell if your web developer ripped you off

Jonathon Horsman Nov 10 4 comments

This story begins simply enough. One morning I check my email and find a message from Mum with the subject “so frustrating!”

What eventuates is in equal parts the most awesome and appalling tech support response messages I’ve ever seen.

Read More...

How to add an Authlogic hook to record login attempts

Jonathon Horsman Oct 19 2 comments

Here’s how I tweaked our code using Authlogic to record all login attempts, either successful or failed.

This can be achieved with 1 new table and 5 lines of code.

Read More...

Upgrading to RSpec 2 with Ruby on Rails 3

Jonathon Horsman Oct 15 2 comments

Following on from my previous post about upgrading our Rails 2.3.5 application to Rails 3 the most time consuming part was getting our 600 tests passing again.

Here’s the process I followed to get our recently upgraded Rails 3 app working with Rspec 2.

Read More...

Upgrading our RoR app to Rails 3

Jonathon Horsman Oct 14 1 comment

David Heinemeier Hansson finally got to me, plus I wanted to use a gem which only works on Rails 3. So I decided to take the plunge and upgrade our flagship Matchbook application to the newest Rails version.

Plus it’s been out for about 7 minutes now so it must be stable, right?? What are we waiting for? Let’s get on board!

Here’s my experience with the upgrade process, the problems I had and solutions I found, which will hopefully assist someone else too.

Read More...

undefined local variable or method integrate_views Rspec Rails

Jonathon Horsman Oct 13 0 comments

So you just Just upgraded to Rails 3 and Rspec 2? And now when you try and run your tests you get this error:

undefined local variable or method `integrate_views’

That’s an easy one.

Read More...

Advantages of mocking frameworks for testing Ruby on Rails

Jonathon Horsman Oct 01 0 comments

When I started out writing tests for my Rails projects I never really saw the point of a mocking framework.

After all Factory Girl made it so easy to just populate the database with the all the test data I needed, so why fiddle around with setting up expectations?

However I’ve discover an additional benefit to using a mocking over just speeding up my tests.

Read More...

Download you twitter feed using Ruby on Rails with OAuth

Jonathon Horsman Sep 15 8 comments

Twitter provides an easy to use API allowing you to display your tweets on another web site or inside another application.

Here is a step-by-step tutorial explaining how to modify your Ruby on Rails application to download tweets using the new OAuth authentication mechanism.

Read More...

Developing Facebook applications for Ruby on Rails

Jonathon Horsman Jul 20 6 comments

We recently developed a Facebook Connect application for a client. There’s a lot to learn if you’re going down this path so hopefully this will help you get started.

Even if you’re not a Ruby on Rails developer there is several tips here which will should help you if you encounter one of the many mysterious and inexplicable Facebook quirks.

Read More...

Nested objects with Formtastic

Jonathon Horsman Mar 16 3 comments

To get Formtastic nested objects to display correctly, there’s a little-documented method on your model required which isn’t mentioned on the Formastic site.

Read More...

Recent Tweets

Blog: The monumental Myspace cock-up: http://bit.ly/emgRKV
Tweeted on Friday at 09:43

Awww railsapi, delete some logs: http://bit.ly/htBNDH
Tweeted on Wednesday at 16:15