4 ms·
You can, it just makes some of Rails' niceties unnecessary. Views and "Controllers" are handled up front by backbone. You just need routing and models from Rail
by taterbase 14y ago
You can, it just makes some of Rails' niceties unnecessary. Views and "Controllers" are handled up front by backbone. You just need routing and models from Rails.
- stiller 14y agoBackbone controllers don't replace Rails controllers. You will still need both for a functioning app. Rails' views are largely replaced by client-side templates in a single-page app, although you can use the asset pipeline to compile and serve these.
- irahul 14y ago> You can, it just makes some of Rails' niceties unnecessary. Views and "Controllers" are handled up front by backbone. You just need routing and models from Rails. backbone.js sends CRUD requests to rails app which are handled by the controller, and the main page is rails view.