![]() rails g scaffold todo title descriptionįinally, run rails db:migrate to add the migrations in database. We will use scaffold to generate everything necessary here. And use BackBone.js to generate it's views. New todo title: " > description: " > Back Using with rails 5 If we assume Views in BackBone as more like a Controller of traditional MVC, then the Templates will be the View.īackBone is felxible and supports most templating engines such as handlebars, mustache and underscore.js's template extend ( ) // even though we are passing a collection. If your project is a glorified ToDo list, then each todo item would be represented as a model. Just as any other library or framework, models are the heart of the application. Now let's discuss some basics of a Backbone application. The whole library is just 1000 lines long (excluding the comments), and very elegantly written. So, which case is it for you, you'll have fun learning it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |