nesquena/rabl — Issue #170: :y u no render?
Author: rurounijones
Created: 2012-02-14 01:42:11+00:00
State: open

I have the following code in a Rails 3.1.3 application

```
collection @areas
attributes :name

child :position do
attributes :x, :y, :z
end

child :dimension do
attributes :width, :height
end
end
```

which results in a ```wrong number of arguments (0 for 1)``` error when trying to render the template. If I remove the :y attribute from the :position child then the template renders properly (minus this attribute of course).

Based on messing around in the console I think the 'y' method takes a string and outputs yaml (or something along those lines) but finding information about it isn't easy because it is a one word method .

I guess the way that rabl is processing the attributes is causing this to be run as a method rather than an actual model attribute.