search for: selectedtyp

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

Did you mean: selectedtype
2007 Aug 23
0
active scaffold polymorphic model
...levant records with the id of each as the value. I set the id of the select box to item_id instead of item_name as I have figured out that item_id is ignored by ActiveScaffold in the views. Can I turn this off so that it shows the id? Params is now passed with :record => {:item_type => "SelectedType", :item_id => id corresponding to the name chosen} which should correctly save the record, however, the record is saved without the item_id. If I use the before_create_save(record) and before_update_save(record) functions and do record.item_id = params[:record][:item_id] it works. I have...