search for: flagged_asset

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

Did you mean: flagged_assets
2006 Apr 24
2
Checkboxes - Saving a Checked record to another table
I am displaying a bunch of records from a table called "assets". Next to each record i have a checkbox. When this box is checked i want to be able to save the id of the record into another table called "flagged_assets". All I need is the ID, nothing else. Im struggling with the logic to save to another table. I know how to do it if the asset_id is already in the "flagged_assets" table. # when flag_assets page is loaded def flag_assets @assets = Asset.find :all end # Called when Ajax fo...