From 6d73d56037780db8f65467c6c3218190e2f83b32 Mon Sep 17 00:00:00 2001 From: Joe Lencioni Date: Mon, 21 Apr 2014 15:39:04 -0700 Subject: [PATCH] Fix incorrect path in readme#components.js The example code looks like it will glob the files in app/assets/javascripts/components, but the paragraph says that it will glob the files in app/assets/components. I believe that this is a mistake, so this commit fixes this problem. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 860594329..2421c00f9 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ In order for us to render your React components, we need to be able to find them //= require_tree ./components ``` -This will bring in all files located in the `app/assets/components` directory. You can organize your code however you like, as long as a request for `/assets/components.js` brings in a concatenated file containing all of your React components, and each one has to be available in the global scope (either `window` or `global` can be used). For `.js.jsx` files this is not a problem, but if you are using `.js.jsx.coffee` files then the wrapper function needs to be taken into account: +This will bring in all files located in the `app/assets/javascripts/components` directory. You can organize your code however you like, as long as a request for `/assets/components.js` brings in a concatenated file containing all of your React components, and each one has to be available in the global scope (either `window` or `global` can be used). For `.js.jsx` files this is not a problem, but if you are using `.js.jsx.coffee` files then the wrapper function needs to be taken into account: ```coffee ###* @jsx React.DOM ###