You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and I thought "isn't this doing too much?" It seems to be messing around with an association's AR internals, reaching 2 levels deep. Would it not be better to have a method on the authorship form object which we write, something like
That's actually a cool idea! I didn't like this code myself, but saw it as a chance to show some more internals to users. However, you're right, it might mislead them to messing around with AR internals...
I like this book. Thank you for writing it. I am reading through it and came across this line:
and I thought "isn't this doing too much?" It seems to be messing around with an association's AR internals, reaching 2 levels deep. Would it not be better to have a method on the authorship form object which we write, something like
then the code in Thing could read
Just a thought. That way the thing doesn't need to know the AR internals of an associated form object.
The text was updated successfully, but these errors were encountered: