Hello friend we often require instant variable which we need to call in our entire application for dynamic content .Here is solution for that , just declare this method in application.rb (controller), put in before_filter:settinginstantvars. This is done have fun with instant variable.
@model = Model.find(:all);
@model.each do |c|
When you need them just do @name (name of field in your table).