Unable to access one of our categories

Thanks, seems I’ll need to apply the default_view fix from the rails console. Unclear on how to fix category “Unofficial-events” with id 36 to use latest view.

I attempted to follow these instructions. Unclear of if I need to re-write myCategory as Unofficial-events along with id 36.

Still a noob on rails console. Summary of my attempt

$ ./launcher enter app

rails c

[1] pry(main)> Unofficial-events = Category.find_by(id: 36)
NameError: uninitialized constant Unofficial
from (pry):1:in __pry__' [2] pry(main)> Unofficial-events.default_view = "latest" NameError: uninitialized constant Unofficial from (pry):2:in pry
[3] pry(main)> Unofficial-events.save!
NameError: uninitialized constant Unofficial
from (pry):3:in __pry__' [4] pry(main)> myCategory = Category.find_by(id 36) NoMethodError: undefined method id’ for main:Object
from (pry):4:in `pry
[5] pry(main)>

2 Likes