Show HN: Sync – Realtime partials with Rails
chrismccord.com
chrismccord.com
The only thing that kinda threw me off a bit was putting the partials in the /views/sync/resource/ folder. Feels a bit non-RESTy.
I imagine, for a sufficiently complex app that sync folder will become a bit messy - although, I guess it's like the 'layout' folder.
That's just me being nitpicky though.
This is awesome.
As others pointed out, this would be perfect if it weren't for the fact that you have to use additional resources to use it properly. i.e. another dyno for Faye or use Pusher.
Thanks for this though.
Edit: One thing I would love to know is how this interacts with caching though. Russian Doll Caching specifically. Every time an attributed is update, does it bust the entire cache and have to reload that entire fragment - as opposed to just the partial?
This is very cool. I have been waiting for something like this, to dive into the real-time web. Wading into client-side JS frameworks has been low on my bucket-list, but I am glad I can finally get something like this to add some 'rich interactivity' to my app.
I definitely agree with everybody else, this should be baked into Rails core - for sure.
I would have thought that with Basecamp Next and the direction that DHH said Rails was going (with aggressive caching and pushing only JSON down the wire) that this implementation would have been included in Rails 4. I was disappointed when it wasn't.
Thanks for doing this. Really appreciate it.
Just curious what the reason is.
Looks very cool, I will definitely try it out!
Is this in use anywhere?