javascript - Separate web app as 'V' in rails app? -
i developing ror app. confused whether develop api in rails app , separate web app using different javascript frameworks. reasons: beginner in ruby on rails. unable customize views using frameworks polymer. (found few gems, feel easy normal web app).
so need suggestion in deciding whether develop api rails , interact using separate web app(html5 , js) or complete project in rails (if please suggest me useful gems in designing beautiful views) ps. want develop api because mobile apps gonna interact it.
if you're gonna mobile applications, use rails build api.
it's easy render json rails, it's powerful build api you'll able use in web js framework (like angularjs) , mobiles applications.
see here how render json : http://guides.rubyonrails.org/layouts_and_rendering.html
hope help
Comments
Post a Comment