I would like to have tags mandatory in my app.
The following keeps giving me error that params is nill.
errors.add(@params[:tags], ":tags must be entered ")
Why cannot I access params in my model class?
The field for tags is called “tags”
How else can I add an error using errors.add?
I finally got to use flash[:notice] in my controller but I’m sure
there is a better way to do this.
Many thanks to the member of this great list for their assistance.