2009/12/12 RVince <[email protected]>: > 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
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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

