On a related note, I'm having some difficulty getting merb to properly
handle static content. It keeps not inserting the "public" into the
request path (so, for example, requesting "hello_world/stylesheets/
master.css rather than "hello_world/public/stylesheets/master.css",
which it then tries to handle as a route, rather than static content.
What should I make sure of to get it to find static files before
trying them as routes?

On Oct 21, 4:09 pm, "Vivek Pandey" <[EMAIL PROTECTED]> wrote:
> We are putting together Merb application deployment support in GlassFish.
> Generally, an application gets deployed with some contextPath unless told
> not to do that. For example if the app name is 'blog' then the contextPath
> will have blog in it:http://boson:8080/blog/. However when the static
> resources are requested we expect the request URL to be something like,
> /blog/stylesheet/master.css but it is rather /stylesheet/master.css.
>
> In Rails we take care of it by something like:
>
> ActionController::AbstractRequest.relative_url_root = $contextPath
>
> Is there any such thing in Merb that I can use to tell that the context root
> is /blog and not '/'?
>
> -vivek.
--~--~---------~--~----~------------~-------~--~----~
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