Your SlideShare is downloading. ×
0
Backbone.js and rails - BanLV
Backbone.js and rails - BanLV
Backbone.js and rails - BanLV
Backbone.js and rails - BanLV
Backbone.js and rails - BanLV
Backbone.js and rails - BanLV
Backbone.js and rails - BanLV
Backbone.js and rails - BanLV
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Backbone.js and rails - BanLV

867

Published on

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
867
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
13
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. BACKBONE.JS and RAILS Name: Le Van Ban
  • 2.  What is Backbon.js?  Why would you use Backbone.js?  Component of backbone.js  How to use backbone with rails?
  • 3. What is Backbon.js? • Backbone is a framework JS, a JavaScript library with a RESTfull Json interface • Backbone was created by Jeremy Ashkenas.
  • 4. Why would you use Backbone.js? - Easier to build javascrip for web app - Easier to maintain Code is clear  Structure MVC
  • 5. Component of backbone.js Router View: used to listen to events and react accordingly Model: containing the interactive data Collection: an ordered set of models
  • 6. How to use backbone with rails? Add “ gem 'rails-backbone' “ to Gemfile Install: bundle install rails g backbone:install rails g scaffold Post title:string content:string rake db:migrate rails g backbone:scaffold Post title:string content:string ( rails g backbone:model - model and collection rails g backbone:router - views and templates )
  • 7. DEMO
  • 8. Tài li u tham kh oệ ả • http://backbonetutorials.com/ • http://backbonejs.org/ • https://github.com/codebrew/backbone-rails • http://perka.github.io/backbone-ui/

×