ccocchi / rabl-rails

Rails 4.2+ templating system with JSON, XML and Plist support.
MIT License
209 stars 51 forks source link

passing locals #61

Closed elbarto132 closed 6 years ago

elbarto132 commented 9 years ago

How do you pass locals in rabl-rails? The syntax from the rabl gem doesn't work: extends('posts/show', :locals => { :hide_comments => true }) extends in rabl-rails seems to accept only one argument

ccocchi commented 6 years ago

You can pass them as you would in rabl in versions 0.5.x (not released yet but you can reference the branch in your Gemfile)