Fix order edit on rails3