ruby on rails - Custom validation :on => :create not working -


I have a custom verification method that I just want to execute on the build:

  Validate: postcount, at: = on & gt; : Make DEF postcount # validate the end of the baggage.  

However, this update has been removed (except for making).

What is : on => : Options do not work with custom verification methods?

As far as I know, there are no : on options Instead use

  valid_code: post_count  

. And in this there is also validate_on_update . You can read about these methods.


Comments