Hi everybody… I’m stuck with a strange (stupid) problem I can’t
I’m trying to do this in the articles_controller:
@arts = Article.find_by_solr(“14 MAY 91”).results
@arts.each do |doc| @sub = doc.title[15,150] # Updating one record: doc.title = @sub doc.save end
It loads but i doesn’t update the article…the strange fact is that if
I do the same process for a single doc in the console it works… so
what’s wrong? something in the .each do?
(any different solution it’s fine for me )