Re:The Rails Doctrine
by reaction on Wednesday January 20, 2016 @02:06PM
(#10940478)
Can someone describe their experience with using rails as a back-end JSON API for javascript apps (flux/react or with angular/ember)?
[ Parent
| on HN ]
We've been happily doing Rails/Ember for about a year now. When we started Ember Data wasn't as stable or as customizable as it is now, so I don't have experience working with that.
In general, we've been happy with it. We ended up writing our own serializer system (similar to ActiveModel::Serializers) to provide legacy clients with the option to use XML without losing our minds. Rails has a lot of view-level niceties that we're not using under this scheme, but the rest of the framework is still very useful for this task.