Converting existing rails app to a single page -


i convert existing rails app multiple models,controllers , views single page app (spa). how can render views each model not separate html pages, sections of main page (say div each section), navigated scrolling vertically? possible same user experience, mean vertical scrolling, in standard mvc rails app?

well, convert standard rails app single page application(spa) need hook mvc front - end framework. html being rendered rails calls fed front-end mvc framework render portions of page instead of complete page making ajax calls. nothing @ changes models , whole of controller codes stay untouched. front-end mvc framework can angular.js google stable of products or backbone.js find great. in fact there's whole host of other frameworks ranging heavy , full- featured ember.js minimal , necessary handlebar.js if you're looking tutorials, tutsplus has tutorial on backbone on rails know of. hope gets started.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -