View change on db field change

I have an issue whereby, say I have a button in a view......that shows one way if a boolean field in a db is true, and another way when it is false. When the value of that field in the db changes, I want the button;s state in the view to change as well. How would you guys recommend I do this? Thanks, R.Vince

Use a helper method to represent this condition.

Just pass the state of the boolean up to the view ( @state = whatever in the controller ) then test this in the view and change the appearance as necessary. Probably setting the button class and using css.

Colin