Nope. I want to know what path the slice is mounted on. I know this is 
usually handled in the slice by slice_url, but I'm not using it in 
"specific" urls, but as part of a wiki-link parser, so I'd like the 
generated link to contain an absolute path.

Here goes an example:

[[Category/SubCategory/CoolPage]] => <a 
href="/wiki/category/sub_category/cool_page">Cool Page</a>

Where "/wiki/" would be the :path where the slice is mounted, and 
"category/sub_category/cool_page" is returned by @cool_page.path

Pavel Kunc escribió:
> You want to get path_prefix in the router?
>
> On Sep 14, 12:01 am, Chris Hoeppner <[email protected]> wrote:
>   
>> Hey,
>>
>> I'd like to access the :path_prefix of a mounted slice to use it in some
>> custom url generation. Is there a way to do this?
>> --
>> Chris Hoeppner
>>
>> Lo importante no es ganar, sino que pierdan los otros.
>>                 -- Anónimo.
>>     
> >
>   



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to