Hmm... I'm beginning to think there should be a persistent wiki page:
WorkingWithEdgeRails. A single place to store all the hacks needed to
get AS working on edge rails. Thoughts?
There were a couple additional changes I needed to make on top of
Daniels patch to get edge rails (as of 20080429) working:
http://pastie.caboo.se/189094 (sorry, I'm managing my AS plugin via
piston so the revision numbers won't tie in).
One change I made, in action_view_rendering, looks like it was just
left out of Daniels earlier pastie (I'm guessing he meant to include
it). The other change, in generic_view_paths, is pretty simple, but
needs to be made because the number of arguments to that aliased
method have changed on rails trunk.
Daniel, after looking at your code, one question I had for you is with
regards to your comment about #partial_pieces no longer existing in
rails. When I checked, I see that method exists here:
rails/actionpack/lib/action_view/partial_template.rb
Was that method not available when you made your patch? Or perhaps the
rails team has changed the functionality enough that it no longer
works for AS? Maybe you just missed it? Some other reason?
Sadly, I probably won't be looking into this again until I need to
update my version of rails again :-\. I still think AS is a great
project and I hope that it continues to stay up to date with the
newest versions of rails. I'll be keeping tabs on these forums and am
hopeful that all this edge stuff will get straightened out soon...
Cheers,
Andrew