IMHO, what you are saying does not make much sense looking at it from the perspective of the intent of the feature. The documentation says that if the callback returns false the chain is halted and it is my understanding that it is provided for you/us as a feature in case it is needed. The fact that you wrote your callbacks not knowing about the feature and unfortunately (or fortunately, so you now know about it) some of them end in a statement that can return false does not make the way it works horrible, just not convenient because you already wrote your code not taking that into cosideration. I am sure that many RoR programmers enjoy what the feature does for them and use it on purpose.
What you are saying could be compared to complaining when taking the key out of a car stops the engine if you didn't know it would occur. Well, that's just the way it works and many of us are thankful for that 'feature'. It saves us a lot of $$ in gas and possibly stops countless accidents. My 2 cents. Pepe On Jun 12, 11:43 am, Max Williams <[email protected]> wrote: > Matt Jones wrote: > > On Jun 11, 12:07 pm, Max Williams <[email protected]> > > wrote: > >> argghh. > > > If you're returning false on purpose, you'll typically add an error to > > the current object (errors.add or add_to_base) to explain what > > happened. Otherwise, it can be a little mysterious... > > > --Matt Jones > > It's the returning false by accident that was the problem, though. I've > now gone through my callbacks and added 'true' before the end, when i > don't want them to fail. This seems kind of horrible. > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

