That'll teach me to say things before I get them running..;)

Josh

Oliver Baltzer wrote:
> On 28-Jun-2006 20:01 -0400, Josh Ferguson was heard to say:
>   
>> ActionController::Routing::Routes.draw do |map|
>>     map.with_options(:controller => 'admin/page') do |page|
>>         page.comments 'admin/pages/comments/:id', :action => 'comments'
>>     end
>> end
>>     
>
> If you look at the implementation of the draw method you see that it
> actually overwrites the routes that have been specified before. Hence, after
> the plugin routes have been created they get overwritten by the application
> routes since they are loaded after the plugins. Also, the plugin routes
> should have higher priority than the application routes, since one should
> assume they only "improve" the application and the last route in the
> application route matches all request URL that have not been matched yet,
> so appending routes doesn't work either.
>
> Oliver
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Radiant mailing list
> [email protected]
> http://lists.radiantcms.org/mailman/listinfo/radiant
>   

_______________________________________________
Radiant mailing list
[email protected]
http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to