Open mojidabckuu opened 9 years ago
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)
or try adding Rails.root.to_s + "/app/views" to your
config.view_paths
At first I faced with an issue when I was using explicit render. The issue that my helper methods from controllers are now available inside rabl templates.
I fixed this one using https://github.com/nesquena/rabl/issues/231
But now I found issue that rabl tries to find template in the wrong place
(Missing template api/v1/paths/popular, api/api/popular with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :arb, :rabl]}. Searched in:
Here is my config