[Rails-core] Would it be possible to add procs to route definition to set params when generating a route?

2010-04-24 Thread szimek
Hey, in my current project I need to provide a city name as a prefix in *most* of urls in my app, which acts as a scope for permalinks. I'd like to avoid manually passing city name to almost every link_to and redirect_to if possible. Would it be possible to add to Rails 2.3/3.0 routing system

[Rails-core] (latest R3/Rub1.9.2) undefined method `map' for #String:0xaea0024

2010-04-24 Thread michael.hasenst...@googlemail.com
Hi, with a simple Item.find(params[:id]) I got this little error (I narrowed it down to that line by removing everything else until I found the one causing the error): Any ideas? undefined method `map' for #String:0xaea0024 Rails.root: /home/mha/App Application Trace | Framework Trace | Full

[Rails-core] Re: (latest R3/Rub1.9.2) undefined method `map' for #String:0xaea0024

2010-04-24 Thread michael.hasenst...@googlemail.com
Actually, not true: I found that @item.tags.size was responsible - tags is an array! If I use @item.tags.length it works. Now I should clearly be able to use size? I use it with other variables in the same context and only this one barks. Latest ruby-1.9.2 (maybe that's the problem? It

[Rails-core] Re: Making ActiveSupport::Cache consistent

2010-04-24 Thread Brian Durand
This I'm not so sold on, expires in is a memcached implementation specific feature and adding it to all the other cache stores simply seems to add overhead for very little gain. No one is seriously going to be using MemoryStore or FileStore in production and wanting to use :expires_in.

Re: [Rails-core] Re: Making ActiveSupport::Cache consistent

2010-04-24 Thread Marc Byrd
Consistency is good - so is backward compatibility - our CloudCache implementation relies upon ActiveSupport::Cache, so prefer that nothing be deprecated, and if so, with a long lead time. Thanks, m getCloudCache.com On Sat, Apr 24, 2010 at 11:48 AM, Brian Durand

Re: [Rails-core] Making ActiveSupport::Cache consistent

2010-04-24 Thread Chad Woolley
On Saturday, April 24, 2010, Brian Durand br...@embellishedvisions.com wrote: This I'm not so sold on,  expires in is a memcached implementation specific feature and adding it to all the other cache stores simply seems to add overhead for very little gain.  No one is seriously going to be

Re: [Rails-core] Overview of Ruby 1.9 encoding problem tickets

2010-04-24 Thread Czarek
Here are some updates I have sinced I started working on LH #2188 until a patch I submitted there. Although the patch specifically fixes ERB using workarounds in the Rails ERB handler, I tried to make the approach as generic as possible. On Mon, Apr 19, 2010 at 11:30:16AM -0700, Jeremy Kemper