Ruby on Rails
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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