So @article is a Category. It may help to follow what is happening by
using more relevant variable names. Perhaps use @category to refer to a
@article.uploaded_data = (params[:article])
What is params[:article] refering to? Does it come from a form editing
an article or is it just a text field which you're setting to this
attribute of a Category object?
@article.article = Article.find(params[:id])
@article.article.tag_list = (params[:tag_list])
You've been carefully setting attributes of @article (a Category object)
and now you are going to overwrite those from params[:article] which
earlier looked like a text element (uploaded_data) but now is a hash of
Category object keys and values?
I suspect your problem is that you are trying to set this Category
object (@article) from an Article attribute hash and you probably want:
If so, then the confusion is probably due to calling your Category
object by the name @article