I have a feedback form in my Rails application. The feedback form requires initializing of the @support variable, and it should be visible on every page. The initialization is v
you can use a helper method (in the application controller) to initialize the support variable . Something like this :
class ApplicationController < .. ... helper_method :my_var def my_var @support = Support.new(:id => 1) end ... end