I need to change the default_view
setting for a category from the command line due to a plugin conflict. I have tried this but it’s not working, can anyone help a rails noob? Thanks!
myCategory = Category.find_by(id: 8)
myCategory.default_view = "latest"
לייק 1
merefield
(Robert)
9 בספטמבר, 2020, 7:27am
2
Sorry David. You need to do
MyCategory.save!
Directly afterwards
2 לייקים
merefield:
MyCategory.save!
Thanks Rob, I was trying to not bother you since you’re a busy man!
2 לייקים
merefield
(Robert)
9 בספטמבר, 2020, 2:19pm
4
No problem at all. Thanks David!
2 לייקים
system
(system)
נסגר ב־
9 באוקטובר, 2020, 2:25pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.