Ruby Rails update all atrribute using param -
currently im using code update 1 attribute, there way can update 'title' @ once ? using update_all maybe ?
title= params['myform']['title'] @book.update_attribute(:title, title) thanks!
currently im using code update 1 attribute, there way can update 'title' @ once ? using update_all maybe ?
title= params['myform']['title'] @book.update_attribute(:title, title) thanks!
Comments
Post a Comment