Skip to content
Browse files

Merge pull request #1 from tristandunn/readme-cleanup

Clean up whitespace in README and mention that it also works with Zepto.
  • Loading branch information...
2 parents f6b5ae6 + 3644c17 commit 519cdc0d7d84b8ff11745bc173bf161e798f76ef Chad Pytel committed Nov 29, 2011
Showing with 4 additions and 5 deletions.
  1. +4 −5 README.md
View
9 README.md
@@ -5,7 +5,7 @@ http://workshops.thoughtbot.com/backbone-js-on-rails
The book contains complete instructions and in-depth coverage of the internals
of CompositeView and Swappingrouter, and an example application that shows
-their usage
+their usage.
### SwappingRouter
@@ -24,7 +24,7 @@ view by rendering that view into its own `el`:
if (this.currentView && this.currentView.leave) {
this.currentView.leave();
}
-
+
this.currentView = newView;
this.currentView.render();
$(this.el).empty().append(this.currentView.el);
@@ -74,7 +74,7 @@ maintain a back-reference at `this.parent`. This is used to reach up and call
You'll need these, but chances are you already have them in your app:
-* jQuery
+* jQuery or Zepto
* Underscore
* Backbone
@@ -131,7 +131,7 @@ First off:
In your `config/application.rb`:
``` ruby
-config.middleware.use Rack::Static,
+config.middleware.use Rack::Static,
:urls => ['/vendor/plugins/backbone-support/lib/assets/javascripts']
```
@@ -157,7 +157,6 @@ end
Your individual specs will then need the full root path in `require`. For
example:
-
``` js
requirePublic = function(path) {
require("/public/javascripts/" + path);

0 comments on commit 519cdc0

Please sign in to comment.
Something went wrong with that request. Please try again.