5 ms·
What function is the Rails component serving? Is it just a REST interface or is it also acting as a separate HTML interface?
by typicalrunt 14y ago
What function is the Rails component serving? Is it just a REST interface or is it also acting as a separate HTML interface?
- steveklabnik 14y agoWe're working on https://github.com/rails-api https://github.com/rails-api to make Rails a great backend for APIs, and specifically Ember. Team is mostly Rails Core members and Ember team members. The hope is to make it awesome for other JS frameworks too, but we mostly build Ember apps ourself, so you start with what you know...
- krebby 14y agoHuge +1 on rails-api. When used in combination with rabl, it's the most formidable Backend solution there is.
- steveklabnik 14y agoWe actually think that AMS is significantly better, but I'm glad rabl works well for you. :)
- krebby 14y agoMostly for the gluing and custom node editing, but also I really like keeping my rabl files (presentation) outside of my models
- steveklabnik 14y agoTotally. And there's a reason AMS isn't part of rails-api proper: we want you to pick the tools you want to use. If rails-api (the gem) doesn't work with RABL in some way, please let me know, that's a bug. You haven't seen the full power of AMS yet, but I have some exciting things planned. :)
- twinturbo 14y agoAms is far better than rabl.
- nesquena 14y agoGlad to hear rabl is working well in conjunction with rails-api. Haven't had a chance to try that combination yet, mostly been using rabl alongside Sinatra, Grape and Padrino.
- steveklabnik 14y agoAs I said below, if it doesn't, please let us know: I'd consider that a bug.
- logical42 14y agoYou can do both, for example, you can use rails for authentication with traditional views and then use ember for the main single page app. I think this is how square does it. Also you should look into active model serializers for integrating rails with ember. I think it's yehuda Katz' preferred method for Jason serialization from rails to ember.
- steveklabnik 14y ago> I think it's yehuda Katz' preferred method for Jason serialization from rails to ember. That is true. AMS + Ember-data = 👍 (I'm now maintaining AMS, but Yehuda and Jose Valim originally wrote it for this purpose.)