From d54afbdbf17493fd0dd6bcfa7e671ad571edac44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luj=C3=A1n=20Fernaud?= Date: Wed, 5 Sep 2018 19:53:44 +0100 Subject: [PATCH] Fix typos in rails_backend.md --- js-rails/rails_backend.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js-rails/rails_backend.md b/js-rails/rails_backend.md index 4c950010..cd9484e2 100644 --- a/js-rails/rails_backend.md +++ b/js-rails/rails_backend.md @@ -8,16 +8,16 @@ Note that you can actually outsource your back end functionality to a Backend-as ### Learning Outcomes * Refresher -- how do you set up a basic Rails app? -* Refresher -- how to you load custom Javascript in a given Rails view page? +* Refresher -- how do you load custom Javascript in a given Rails view page? * How does "unobtrusive Javascript" work? * How can you pass data from your Rails app to your Javascript? -* Why would you want to use AJAX to load large batches of data +* Why would you want to use AJAX to load large batches of data? ### Assignment
1. [Check out "Using Javascript in your Rails App" from Daniel Kehoe](http://railsapps.github.io/rails-javascript-include-external.html). It is long and covers a lot of ground, but it's got great content. Some of the stuff on dependencies can be skimmed, but pay attention to the `content_for` stuff at the bottom. -2. [Refresh yourself on Rails AJAX from RailsGuides](http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html) (just skim the top few sections) +2. [Refresh yourself on Rails AJAX from RailsGuides](http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html) (just skim the top few sections). 2. Read [Bootstrapping JSON data into a Rails View](http://jfire.io/blog/2012/04/30/how-to-securely-bootstrap-json-in-a-rails-view) to learn about passing data to your front end.