Crossing the Bridge: Connecting Rails and Your Front-End Framework
summary
Compares concrete integrations: TodoMVC examples in Angular (Bower, ngResource), Ember (Ember CLI, Ember Data with ActiveModelAdapter + ActiveModelSerializers, preloading models into the store) and React (react-rails with server-side prerender true). Shows two workable patterns — preload JSON via window to eliminate initial API round trips, and isomorphic/server rendering to produce crawlable HTML and remove spinners — and demonstrates that both preload and prerender approaches meaningfully improve perceived performance and SEO.
AI-written summary · about
chapters (9)
- 0:00Start
- 3:19Maintainable, sustainable, performant applications
- 6:55First, let's get our Rails project API ready
- 8:26How can we manage our client-side data to make it easy to work with?
- 9:26Now we can set up our factory to hold our resource and pass it to our controller and our template
- 15:10Instead of using JSON calls, we want to preload Ember
- 17:02Let's get setup with our client-side code
- 18:48Ember will initialize Ember Data objects for us, inferring the correct type from the root of the JSON response
- 19:471. Don't fight Ember. Use conventions like AMS
related talks
40mFRONTEND CHOICES
19mFrontend Meet Backend Get Along
36mRails Vs. The Client Side
40mUsing Backbone.js with Rails: Patterns from the Wild
35mFrontendless Rails frontend
47mCamel and Eye of a Needle: Integration Approaches for SPA-based Micro Frontends
01h 07mModern Frontend Engineering
38mThe Front-End Future
