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
I've never tired it but just found this post on Google
render :file => "#{RAILS_ROOT}/public/banners/somebanner.html"
looks like there might be some caching side-effects, even in development mode
also you probably want :layout => false with that