Rails 3?

Tom Hughes tom at compton.nu
Fri Sep 30 20:53:21 BST 2011


On 06/09/11 13:55, Tom Hughes wrote:

> On 06/09/11 12:59, Jonathan Bennett wrote:
>
>> How far has anyone got with making the Rails Port work on Rails 3? What
>> are the blockers, and what will it give us?
>
> The simple answer is that I have a branch where I have been working on
> it and it is largely functional.
>
> There are a few tests failing still, all I believe relating to our use
> of compound keys and the composite_primary_key plugin.

The good news is that I have resolved the outstanding problems and now 
have a tree which passes all tests. I've pushed the source to the rails3 
branch in my github account:

   http://github.com/tomhughes/openstreetmap-website/tree/rails3

I have also set up a running test version on the dev server:

   http://rails3.apis.dev.openstreetmap.org/

Please do test it out people, and report any problems here.

> There is also some work to be done on replacing deprecated find methods
> with newer AREL based record selection. That isn't essential for rails
> 3.0 as the old methods still work, but 3.1 is out now and the old
> methods have been removed from that.

I have now completed the move to AREL and updated to rails 3.1.0 in my 
tree. Hopefully 3.1.1 will be out next week which will resolve a few 
minor glitches.

> It also opens the door to moving from prototype to jquery which will
> hopefully enable many clever things. Rails 3.0 defaults to prototype but
> can use jquery instead. Rails 3.1 defaults to jquery, but can use
> prototype instead.

This I have left as a project for the future.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://compton.nu/



More information about the rails-dev mailing list