OK - I know this has been asked before, but I cannot find it in the
archives. Forgive me if I’m creating more noise than I should.
I want to know the easiest way to deal with this scenario:
I have articles. I have categories for the articles.
On the form where you write an article, there needs to be a free-form
field to entire the category.
The create() method will build the article, find_or_create_by_name the
category, and assign it to the article. After that, the article is
I need to display an error if the category isn’t included, and I need
it to act like a normal form error: add its message to the list of
errors, and highlight the field.
Does anyone know an easy way to do this? I know it’s right here in
front of me…
Thanks in advance,