diff options
author | Michael Pearson <mipearson@gmail.com> | 2011-11-24 10:59:29 +1100 |
---|---|---|
committer | Michael Pearson <mipearson@gmail.com> | 2011-11-24 10:59:29 +1100 |
commit | ef38c3089e1269e2b315aff503e61c0b23c95f00 (patch) | |
tree | 67abf07a9efee86dc3a31fae2a213de25298a60a /railties/guides/source | |
parent | 0e7443060b298d080292b18a5888aaf554cce344 (diff) | |
download | rails-ef38c3089e1269e2b315aff503e61c0b23c95f00.tar.gz rails-ef38c3089e1269e2b315aff503e61c0b23c95f00.tar.bz2 rails-ef38c3089e1269e2b315aff503e61c0b23c95f00.zip |
Move JS runtime instructions to where the error would be encountered, remove gem install.
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/getting_started.textile | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index 55415dd41b..5774eba5ae 100644 --- a/railties/guides/source/getting_started.textile +++ b/railties/guides/source/getting_started.textile @@ -250,18 +250,6 @@ $ rails --version If it says something like "Rails 3.1.1" you are ready to continue. -h5. Installing a JavaScript Runtime - -By default, Rails requires a JavaScript interpreter to compile CoffeeScript to JavaScript. - -You can install one by running: - -<shell> -# gem install therubyracer -</shell> - -Or investigate the list of alternatives give by "ExecJS":https://github.com/sstephenson/execjs. - h4. Creating the Blog Application To begin, open a terminal, navigate to a folder where you have rights to create @@ -462,6 +450,12 @@ start a web server on your development machine. You can do this by running: $ rails server </shell> +TIP: Some environments require that you install a JavaScript runtime to compile +CoffeeScript to JavaScript and will give you an +execjs+ error the first time +you run +rails server+. +therubyracer+ and +therubyrhino+ are commonly used +runtimes for Ruby and JRuby respectively. You can also investigate a list +of runtimes at "ExecJS":https://github.com/sstephenson/execjs. + This will fire up an instance of the WEBrick web server by default (Rails can also use several other web servers). To see your application in action, open a browser window and navigate to "http://localhost:3000":http://localhost:3000. |