I am trying to develop a sortable list in Rails 3 using Jquery. I got it working a while back in PHP. How would the below code look in Rails 3?
function reOrderSave()
{
$page = $_POST['page'];
foreach ($page as $aco_order => $aco_id) {
$data = array(
'aco_order' => $aco_order
);
$this->db->where('aco_id', $aco_id);
$this->db->update('fe_albums_content', $data);
}
}
Tüm yardım için müteşekkir!