it helps some times You are describing a CMS. Check out BrowserCMS and RadiantCMS. In short, you need to extract out parts of the page that are editable, and store them somewhere, typically the DB. You can have users edit those parts of the page via your typical web forms. Extra points for ajax/in-place editing, but other than that there's not much magic to it. This railscast may also be useful if you don't need a full blown CMS.
hope this fix your issue I doubt you actually need it to be accessible in all views. But you can put @random_quote = Quote.find(:random) under a method that is called with a before_filter in your ApplicationController. It will then be accessible everywhere. Like so:
@random_quote = Quote.find(:random)
What's the right way to make new methods available to views from a Rails Gem?
I wish this help you Many gem authors create a module that defines their view helper methods and then includes them in ActionView::Base.
# You can do this here or in a Railtie
ActionView::Base.send :include, MyGem::ActionViewExtensions::MyHelpers
In Rails, how to make :mobile views to fallback default views when not found?