I am building a site with multiple “blogs” activated and there are instances where it would be useful to be able to get things like the blog.prefix
from config.rb
. I know you can set
variables and use instance variables via config.rb
but that means in templates I have to know which blog I’m in which doesn’t solve my problem. (I want one layout for all the blogs, not a duplicate one for each.)
Is there a way I can get the blog.prefix
and other activation variables from config.rb
and use it in a layout like:
<p>The blog prefix is: <%= blog.prefix %></p>