[Rails-core] Re: $LOAD_PATH issue with Ruby 1.8.7 and Rails 2.2.2?

2008-12-05 Thread Mislav Marohnić
2008/12/5 Jeff <[EMAIL PROTECTED]> > > Just in case anyone cares and to close this thread, part of the > solution involved changing the code in my custom template handler. > Seems like 2.2 broke 2.x syntax for custom handlers. The 2.0 -> 2.2 road has been VERY bumpy regarding the ActionView API,

[Rails-core] Re: $LOAD_PATH issue with Ruby 1.8.7 and Rails 2.2.2?

2008-12-05 Thread Jeff
On Dec 1, 7:07 pm, Jeff <[EMAIL PROTECTED]> wrote: > On Dec 1, 6:57 pm, "Mislav Marohnić" <[EMAIL PROTECTED]> > wrote: > > > On Tue, Dec 2, 2008 at 01:46, Jeff <[EMAIL PROTECTED]> wrote: > > > > /home/jcohen/sites/pw/current/vendor/rails/actionpack/lib/action_view/ > > > template_handler.rb:11:in

[Rails-core] Re: belongs_to, has_many counter_cache

2008-12-05 Thread Chris Cruft
One other thing I should have mentioned: the ActiveRecord aggregations interface is, IMHO, ripe for being incorporated into this same type of modeling. With the latest enhancements to constructors and converters, Aggregations can start to be viewed as a flexible interface to in-memory association

[Rails-core] Re: belongs_to, has_many counter_cache

2008-12-05 Thread Chris Cruft
I don't have a lot to offer to this subject except to say that in my experience of building declarative bidirectional relationships in Javascript (to proxy AR records!) I found that "promoting" the associations to a full-blown model was quite clean. If done directly in AR, I could imagine somethi

[Rails-core] Re: MemoryStore should make use of an :expires_in option?

2008-12-05 Thread Mislav Marohnić
On Fri, Dec 5, 2008 at 13:18, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Although it will use up more memory that the basic MemoryStore, > can anyone see any other problem with it? > (it's not threadsafe, but nothing is apparently, including 'require') The whole Rails framework is threads

[Rails-core] Updated NestedAttributes patch (was NestedParams) and AttributeDecorator

2008-12-05 Thread Eloy Duran
Hi listees, Now that the 2.2 craze is gone, I thought I'd update my patches for the current codebase. Otherwise you guys have nothing to do… ;-) The first patch is our take on a composed_of replacement: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/950-attributedecorator-a

[Rails-core] MemoryStore should make use of an :expires_in option?

2008-12-05 Thread [EMAIL PROTECTED]
Hi there, has anyone ever looked at making ActiveSupport::Cache::MemoryStore respect the :expires_in option? I had a go, and built a plugin to add it. ActiveSupport::Cache::ExpiringMemoryStore http://github.com/matthewrudy/expiring_memory_store It should work in the same way MemcacheStore does