I’ve got a simple toggle option (On/Off) in my admin GUI list action. I
would like to click on this graphic and change the status of the option.
I got the whole thing working in the controller & db through this
@item = Item.find(params[:id]).toggle!(‘display_status’)
The thing I can’t achieve - even after several hours of labouring my
brain cell - is how to update the graphics that I click on, ie swapping
the On graphics for Off & vice versa.
In what way do I do this with Rails & Prototype ?? I’ve been trying
multiple options/scenarios to the best of my abilities, but it still
ain’t working. Any ideas and help, please ?