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
Post a Comment