Try changing

>   :background-image url(images/paw_print.gif)

To

:background-image url(/images/paw_print.gif)

The initial / will anchor the request at the root, so you will get  
public/images.  images/paw_print.gif is a relative path which is why  
its trying to hit public/stylesheets/images/paw_print.gif.

Thanks,
Zack


On Jan 9, 2009, at 2:51 AM, Roy Wright wrote:

>
> Howdy,
>
> I decided it was time to spruce up my app a little and wanted to add
> a background image repeated across the top as a banner.  More of
> a trial as I don't have the real artwork yet.
>
> So created a <div class='banner'/> in the layout/application/html.erb
> then in the app's sass file added:
>
> .banner
>   :height 200px
>   :background-image url(images/paw_print.gif)
>   :background-repeat repeat-x
>
> The problem appears to be that merb is wanting to route the image
> url request to a controller:
>
> merb : worker (port 4000) ~ No routes match the request: /stylesheets/
> images/paw_print.gif - (Merb::ControllerExceptions::NotFound)
>
>
> Any idea how I should configure the router to handle public/images/*?
>
> TIA,
> Roy
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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