rabl
rabl copied to clipboard
General ruby templating with json, bson, xml, plist and msgpack support
I am trying to get the rendered result in Rails console. `Rabl.render(@post, 'api/v1/posts/show', view_path: 'app/views', format: :xml)` But it fails due to this issue: **NameError (undefined local variable or method...
I want to limit child amount. ``` object false child @chat_groups, root: :chat_groups, object_root: false do child :messages, root: :messages, object_root: false do attributes :id end end ```
I have a new Rails project using rabl v0.13.0 and I'm getting this error. ``` lib/rabl/digestor.rb:6: syntax error, unexpected ',' (SyntaxError) def self.digest(name:, finder:, **options) ```
Rails 4, RABL 0.9.4pre1 and 0.9.3, Mongoid 4.0.0.beta1 In one controller I have an action like ``` ruby def index @bookmarks = current_user.bookmarks.includes(:channels, :user) end ``` Which renders the rabl...
We are migrating to Ruby on Rails 5, and upgrading to rabl >= 0.13. Everything looks good except this one request that is returning a stringyfied object instead of a...
I have the following hash in my controller. ```ruby @order = { :id => "somestringid", :user_id => "someotherstringid", :amount => 19.99, :metadata => [ { :type => :shipping_data, :address =>...
I have the following in my controller ```ruby @somedata = [ {:key1 => 'hello', :key2 => 'world'}, {:key1 => 'bye', :key2 => 'world'}, {:key1 => 'greetings', :key2 => 'universe'}, ]...
Hi I'm facing a problem with rendering an array which contains another arrays. The array itself look like this: ``` @array = [[[2014, 138.92], [2015, 142.98]], [[2014, 141.57], [2015, 148.48]]]...
I just converted an inline-rendering example to using partials: ``` collection @elements attribute :id, :subject, :description, :project_id, :parent_id node ... node ... .... ``` where the code was inlined into...
Quick question for anyone out there: the latest version on Rubygems is from October 2016. There's been a lot of work done in the `master` branch since then. Should we...