fix edit nested category also for rails 3