Open geun opened 11 years ago
wired view path. Is it correct to use view_path once?
Cannot find rabl template 'original_texts/original_text' within registered (["/home/deploy/chattingcat/releases/20130812101904/app/views/api/v1", "/home/deploy/chattingcat/releases/20130812101904/app/views/api/v1"]) view paths!
Does that path seem correct, i.e is there a view in that path listed that "/home/deploy/chattingcat/releases/20130812101904/app/views/api/v1/original_texts/original_text'"
exists?
When you have scoped views, the weird pathing in rabl concats the paths, so a way to fit the exact path is (worked for me while debuging the gem):
Rabl::Renderer.json(objects, 'app/views/scoped/directories/resource', view_path: Rails.root.to_s)
I use rabl in sidekiq. but sometimes error has occurred
error_message is "Cannot find rabl template 'original_texts/original_text' within registered ([\"/home/deploy/chattingcat/releases/20130817133018/app/views/api/v1\", \"/home/deploy/chattingcat/releases/20130817133018/app/views/api/v1\"]) view paths!", "error_class"=>"RuntimeError"
this is my rabl setting.