The following question blocked my way for a couple days. I appreciate
any help in advance.
I have one form that adds text entry to the database. There are two
ways to add the entry:
1. User fills all the fields then click "submit button 1" -- need to
validates_presence_of "field-1" and "field-2"
2. User click "submit button 2" -- need to validates_presence_of
"field-2" and "field-5". ("field-5" contains a URL and server will
search in the internet and fill all other fields automatically)
How to implement the validations?