Nick Sutterer

Results 675 comments of Nick Sutterer

**Cool!** Loving the idea + implementation. We have to be careful, though. The pagination I suggest in the blog post doesn't follow any MIME format (like HAL or Collection-JSON), I...

Not sure how pagination is defined in HAL - I don't recall that being specified in the official document at all! That's why I'm cautious about merging this. I also...

That is incredibly cool, @summera, especially because you set a standard for discussion. This gem will help many people understanding how some things work in Roar. Please, keep me in...

This implies that you have a "Rails model" in your hands, which is a wrong assumption, as many people render and parse arbitrary domain objects!!! We can make the name...

I guess Tmpdir calls `#to_hash` and since your object is "polluted" from being extended with the representer it calls the "wrong" `#to_hash`? Try if that error occurs when using a...

Look here: http://www.ruby-doc.org/core-1.9.3/Hash.html#method-c-try_convert It really calls `#to_hash` which is then falsley provided by the already mixed-in representer. There must be a stale instance lurking around somewhere in your stack... Can...

You know what? I reckon that `nil` is mistakenly extended somewhere in your app, this is "cached" across some requests and then roar's `#to_hash` is called where it shouldn't. Haha,...

Ok that is exactly the case - somewhere your singleton instance `nil` is extended with a representer. If you could find out where that would greatly help. Also, extending singletons...

I'm not sure if you have to buy the drinks. The thing is: should roar really extend a singleton object like `nil`? On the one hand, I say, no exceptions,...

Agreed, we should add a check to roar-rails since this is an ugly hard-to-spot thing. Oh cool, so you buy the beers? Great!