I went through whole example in lesson and I run into one problem. ShoutsController#create
validations for body
are not run, which leads into weird state when Shout
is saved, but TextShout
is not. What is proper way of propagating validations from association in Rails? Do I have to write custom validation method?
Thanks for help.
UPDATE: As most of the times, answer was quite simple I just had to read Rails docs more carefully.