Displaying 1 result from an estimated 1 matches for "workout_yellow".
2006 Apr 19
1
AJAX - update item forms problem
...ut.exercises_count = @workout.exercises.count
@saved = @workout.update_attributes(params[:workout])
return if request.xhr? # render RJS instead
update.rjs
----------
if @saved
page.hide "workout_edit_#{@workout.id.to_s}"
flash[:notice] = "Workout updated."
session[:workout_yellow] = @workout.id
page.call ''location.reload''
else
page.hide "workout_edit_#{@workout.id.to_s}"
page.replace_html "workout_error_list_#{@workout.id.to_s}",
error_messages_for(''workout'')
page.replace_html "workout_form_#{@workout.id.to_s...