Nick Sutterer

Results 675 comments of Nick Sutterer

What roar-rails version are you on?

That's because you haven't seen how simple things can be with less Rails: https://leanpub.com/trailblazer

I hear ya! :stuck_out_tongue_winking_eye: Trailblazer is Rails, just less coupling to the actual framework and less weirdness going on in controllers and models. I really have no idea what's going...

AH, I know what's your problem. You got a file `app/views/v2/peoples/index.html.haml` and that makes it try to call `render_default` and this is exactly why I hate Rails. Explanation: Rails and...

Are there any files in your `app/views`? See, this is where the wrong flow starts: https://github.com/plataformatec/responders/blob/master/lib/action_controller/responder.rb#L190 Wait, what was your actual problem in the first place? We can make that...

It sounds like your representers for singular models are ok. However, you need to define a representer for collections, too (or use `represent_items_with`, which isn't implemented for `render`, YET _cough_...

Tons of examples in issues, check [Lonely Collections](https://github.com/apotonick/representable#lonely-collections). Or buy my book and wait a few weeks until we get to the document API parts. **_cough**_ **_COUGH**_*

Your `PersonRepresenter` must have a `representation_wrap` set?

Haha, no, I am saying `Api::V2::PersonRepresenter` should NOT have a representation wrap set, otherwise it will add it for every item. Paste `Api::V2::PersonRepresenter`.