Open BenMorganIO opened 9 years ago
Commenting to bump this issue.
Hi @BenMorganIO
Could you check where exactly that error is originating and whether you're using the latest version of Rabl? From what I can see, use of the lookup_context
method is only ever used after it's been verified to exist via respond_to?
.
—Douwe
PS. I know that's not exactly the point of this issue, but I want to get us on the same page first.
The version of Rabl currently being used is 0.9.4.pre1. I'm unable to update due to large amounts test failures on Spree's end.
I'll need to recreate the work for the stack trace.
I'm currently trying to deal with view paths. I have a Rabl template that is extending from another rabl template located in a rails engine. I've added to my Rabl configuration:
This is what I'm doing inside of my application controller:
And inside of my products controller:
The
current_order
does return an order object. The path to"api/orders/show"
is successful. It renders this:Spree is an opensource project that is using Rabl and I would like to extend one of their views. In doing this, I received this error:
I'm wondering if we can drop the option to select the view path and autoset it if you're using Rails via the
view_paths
helper from ActionController.