Closed pamio closed 6 years ago
Hello,
Sadly the cache
directive cannot is not evaluated in the context of the controller so you cannot access any variable from there nor the params
hash. It was made only to have the object or collection available within the block.
Thanks for the clarification.
Hi, I've been using rabl-rails for sometime now and its great. But I'm not able to use a cache key generated by controller in the rabl template.
Here is the code
Also I can't seem to be able to access the params hash in the rabl template. Is this intended ? How can I achieve this ?
Thanks in advance.