Nick Sutterer
Nick Sutterer
Well, what do _you_ think? I just like decorator better, it's a tiny little bit faster and does not pollute the model. On the other hand, I guess most people...
Hmmm.... it's really up to us. Maybe you're right.
Think we got a winner. :wink:
Not yet, as per Cj is not really well supported by Roar, yet.
You have to `require` the respective file to make it work!
Have you looked into the `::represents` class method, yet? https://github.com/apotonick/roar-rails#represents-configuration
I'm still wondering, though, why the `:represent_items_with` option doesn't kick in?
Ah, I got it! The `:represent_items_with` option doesn't work with `render`! If you use `respond_with` you gotta call `respond_to` on the controller level (that's Rails, not roar-rails!)!
Can you paste the server output or the test line for that failling request? It must be something in Rails, we don't throw `UnknownFormat` anywhere! Thanks!
"No worries, mate!" as they say in Australia! :wink: This is your problem: `Processing by Api::V2::PeopleController#index as HTML` Your request is not a JSON request! That's why Rails complains, it...