Accessing model object var from simple sidebar

Hi all,

I am using the simple sidebar which is giving me some problems. I have
several side bars

class CandidateController < ApplicationController
sidebar :person
sidebar :person_tabs

I have a partial for each in the sidebars dir under views. The strange
thing is that though I am able to refer to the model object in :person
sidebar such as person.firstname, I am not able to from the second
sidebar :person_tabs. I get a not defined error. I tried changing the
order of the side bar which causes them to be rendered in reverse
order but I still cannot see the model var person in the second one.
Any suggestions? Thank you,


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs