a work on process

This is the blog of James Stewart, a London-based web developer. You can find out more about my work on the Ket Lai site, follow me on twitter, or find me on github, flickr, last.fm or bkkeepr.

Talking to Wordpress with ActiveRecord

You are reading a post by James Stewart entitled Talking to Wordpress with ActiveRecord. It was posted on 24 July 2009 at 10:00 am.

You can find more posts by returning to the index.

Filed under: Announcements
Tagged: , , , ,

As mentioned in yesterday’s announcement I’m pulling some content across from this blog (running on wordpress) into the new Ket Lai site (a merb app). I’ve found myself doing similar things a few times lately, such as on Only Connect (on which more, soon) and so have built out a selection of ActiveRecord models to help me talk to a wordpress database from a ruby app.

At Matt’s urging (he’s been using them to move data from a legacy site), I’ve finally put those models up on github. Being a single file they arguably should have been a gist, but I’m reserving the right to reorganise them in future.

They’re far from complete in that there are lots of validations I could have added in, named scopes that would probably be handy, and loads of convenience methods that some might like, but hopefully they’ll be of use to someone and evolve over time.

(on the subject of wordpress, I’m glad to see the addition of changelogs to the plugin directory – being asked to upgrade plugins without any idea what’s changed has long been a bugbear of mine, so hopefully this will resolve some of that)

Recommend this post:

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Related Posts

 

No Comments

No comments yet.

Sorry, the comment form is closed at this time.