search for: controllerr

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

Did you mean: controller
2006 Apr 06
3
sortable list not saving to database
i am trying to use a sortable list on my app. i used the chapter in Rails recipes as a reference on how to do it. i have the following code in my controllerr: def sort @user_list = User.find(params[:id]) @user_list.tasks.each do |task| task.position = params[''user-list''].index(task.id) + 1 task.save end render :nothing => true end and in my view, i have: <h2><%= @user_list.full_name %>&...