On May 30, 2006, at 3:11 PM, Charlie Bowman wrote:
Will there now be a way to get the long url back? Here's an example.
map.connect '', :controller => "pragmatic", :action => 'index'
Can we now map this back to /pragmatic/index by using url_for? I
don't know if anyone else uses this, but it would really help me
out on the page expiration plugin I wrote (Broomstick).
It would not be hard to make a plugin to do this...
Most of this is copied from the new impl:
class RouteSet
def generate_all(options, recall)
options = options_as_params(options)
expire_on = build_expiry(options, recall)
merged = expire_on[:controller] ? options : recall.merge(options)
routes.collect {|r| r.generate(options, merged, expire_on)}.compact
end
end
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core