Login  Register

Tutorial bug with preferedUrl?

Posted by bobcalco on Jan 27, 2012; 10:08am
URL: https://forum.world.st/Tutorial-bug-with-preferedUrl-tp4332983.html

I have implemented the Aida tutorial but notice a quirk when adding new entries, namely, the URL of the new object is always "-c". For example, if you add 'Jack', 'Beanstalk', '1234567890', '[hidden email]', the URL of the new entity is '/address/-c'. It seems to me it should generate correctly the URL '/address/beanstalk' instead.

In order to fix the situation I have to run

book addresses do: [ :each | URLResolver default changeToPreferedURL: each ].

... (fortunately I have the 'book' reference in my transcript which I don't dare lose). Then everybody's URL is right.

- Bob



_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida