Render public html's for dynamic banners in Rails ?
        Posted  
        
            by benoror
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by benoror
        
        
        
        Published on 2010-04-21T03:54:57Z
        Indexed on 
            2010/04/21
            4:23 UTC
        
        
        Read the original article
        Hit count: 572
        
Hi, I would like to render specific HTML snippets for displaying banners, because each banner has a different nature (some images, some flash, etc). Every banner file is under app/public/banners/. I tried many ways, like:
render :file => "/banners/somebanner.html"
But it can't locate the file, because rails looks under app/views. Any Ideas ? Thanks!
Missing template banners/somebanner.html in view path app/views
© Stack Overflow or respective owner