It would be nice if route parameters could be dinamicly accessible by default values.
Something like this:

map.dashboard ':module', :controller => '#{module}/dashboard'

So http://thedomain.com/organizer would actually call :controller => "organizer/dashboard', :action ="" 'index'

But there's a problem, url_for(:controller => 'organizer/dashboard', :action ="" 'index') wouldn't be possible cause it wouldn't know which route to use, but probably dashboard_url(:module => 'organizer') would be just fine.

Please, write a decent documentation, since the current one is kinda missing. :)

Cheers,

Rodrigo Kochenburger

On 5/30/06, Dan Webb <[EMAIL PROTECTED]> wrote:
Hi Jamis,

Thanks for the notice.  I'll keep an eye on it and make adjustments to
the Request Routing plugin as necessary.  I'm looking forward to a
rewrite of the routing code, it's the most difficult to extend of part
of Rails.

Cheers,

Dan

On 5/30/06, Jamis Buck <[EMAIL PROTECTED]> wrote:
> Nicholas Seckar and I have been working on a rewrite of the routing
> code, making it leaner, faster, and easier to understand. It will
> also be easier to extend, so it is an all-around win.
>
> However, because it is a rewrite, the internals have changed
> significantly. If you have code (a plugin or otherwise) that messes
> with routing, there is a good chance this rewrite will break that
> code. The public-facing API (things you use in config/routes.rb) will
> remain the same, but expect anything else to break.
>
> The simply_restful plugin, for instance, will not work with the new
> routes until some (minor) modifications are made to it.
>
> I'll be working this afternoon on merging the new routing code in,
> and depending on how smoothly it goes, this may be finished as soon
> as tomorrow. If I hit some bumps, it may take longer.
>
> Just wanted to give everyone a heads-up.
>
> - Jamis
> _______________________________________________
> Rails-core mailing list
> Rails-core@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-core
>


--
Dan Webb
http://www.danwebb.net
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to