I can see how your fix would keep this from blowing up, but I think you are just error checking a different issue. active_scaffold_constraints.keys should not be ""
Can you reproduce an example that was causing this problem? On Jan 20, 5:41 am, Michelschr <[email protected]> wrote: > I found necessary to make this patch to /lib/active_scaffold/actions/ > nested.rb: > > def nested_association > if active_scaffold_constraints.keys.to_s == "" > logger.info "It's empty string" > end > return active_scaffold_constraints.keys.to_s.to_sym if nested? > and active_scaffold_constraints.keys.to_s != "" > # MY PATCH: and active_scaffold_constraints.keys.to_s != "" > nil > end > > Without that, I get error complaining because > active_scaffold_constraints.keys.to_s is "" and cannot go to_sym. > > For the moment I can live with this patch (I have rails 2.2.2 and the > commit of AS 2.2 (ex master) of 01/13/09). > > I will go to rails 2.3 as soon as possible and test this bug again > later. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
