Actually, when you use map.resources, the named route for the index
action would be 'extensions_url' (with no parameters).

Sean

On 6/4/07, Jacob Burkhart <[EMAIL PROTECTED]> wrote:
> > change the routes file to look something like this:
> >
> > map.with_options :path_prefix => "admin/" do |admin|
> >     admin.resources :pages, :snippets, :layouts, :users, :extensions
> > end
>
> I tried this for the extensions controller, seems it should be simple
> enough right?
>
> commented out the extensions routes and added:
>
>   map.with_options :path_prefix => "admin/" do |admin|
>      admin.resources :extensions
>   end
>
> and I get:
>
> undefined local variable or method `extension_index_url' for
> #<#<Class:0x222df3c>:0x222df14>
>
> It seems in order to be able use named routes, we have to name each
> route explicitly:
>
> It seems that the line:
>     extension.extension_index  'admin/extensions', :action => 'index'
>
> is what makes "extension_index_url" come to life
>
> and
>
>     extension.extension_indexwithanothername  'admin/extensions',
> :action => 'index'
>
> would make "extension_indexwithanothername_url" come to life.
>
> Thoughts on how to get around this?
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to