In my rails application, I render a partial on multiple pages, and in that partial is a variable. So currently, lets say I have 5 pages that render :partial => "partialname", and inside of partialname is @variable.
Can I have it so that partialname has its own action with @variable instantiated inside, rather than having @variable be called 5 times from each action that renders the partial?
Thanks!