I am trying to update a string attribute in the database.
I tried using update_attribute but it isn't working. It works for integer attributes but not for String attributes.
How do i solve this ?
EDIT
code example:
@post = Post.find(params[:post_id])
@comment = @post.comments.create!(params[:comment])
@comment.update_attribute(:commenter,User.find_by_id(session[:user_id]).name)