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

2010-04-23 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 som

Re: [Rails-core] Routing a Sinatra application

2010-04-23 Thread Mislav Marohnić
I can confirm that this is true. The `recognize_path` lookup failed not because it couldn't find '/nested_application', but because it found it and failed on `route.app.is_a?(Dispatcher)` lookup. `route.app` returns Sinatra::ShowExceptions, which is the first Sinatra middleware on the stack that's

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

2010-04-23 Thread Chris Hanks
Moneta already supports Redis (and a bunch of other stores, too). ActiveSupport's cache could be based on it, rather than duplicating a lot of work here. http://github.com/wycats/moneta On Apr 23, 5:27 am, Ken Collins wrote: > This is a great topic and I just wanted to add that possibly a Redi

[Rails-core] Routing a Sinatra application

2010-04-23 Thread Damien MATHIEU
Hello, I wish to route a sinatra application in my Rails 3 app. As said by Yehuda, it should be possible. http://yehudakatz.com/2009/12/26/the-rails-3-router-rack-it-up/ However I see the route isn't recognized and I get ActionController::RoutingError problems. It works well with simple rack apps

[Rails-core] Possible bug in JoinDependency code, and another take on inferred joins.

2010-04-23 Thread Ernie Miller
On Apr 20, 9:50 pm, Norman Clarke wrote: > > Definitely looks like a cool idea for a plugin though. You should keep > working on it. I've got an alternate take on the concept up at http://github.com/ernie/meta_where/tree/autojoin now. I think I like this one better, and it seems to work OK with

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

2010-04-23 Thread Ken Collins
This is a great topic and I just wanted to add that possibly a RedisStore might be good in core too. I was thinking of finding some time next week and doing a ActiveSupport::Cache::RedisStore that passes some tests and conforms to the LocalStore strategy too. I have seen this: http://github.co