search for: toggle_img

Displaying 1 result from an estimated 1 matches for "toggle_img".

2006 Mar 28
2
JS Toggle graphics on action / click
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 beautiful one-liner @item = Item.find(params[:id]).toggle!(''display_status'') The thing I can''t achieve - even after several hours of labouring