Observer on checkbox

Hi

I have attached an observer to a checkbox to determine if the box was
checked and then to display an additional partial to get data from the
user.

When then box is checked, the partial appears as required.

My query is this: I want to make the partial disappear if the check
from the box has been removed, but I can’t see a way. Could anybody
please enlighten me on how this might work.

I thought that a callback might be useful, but the :before callback,
as far as I can see in Agile is only for the link_to_remote ajax call
and hasn’t been implemented in observers.

Thanks in advance for any help.

Clive

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