From ab47bc0e37decefbdea6db3baaa4b17fa6bd5915 Mon Sep 17 00:00:00 2001 From: bellitabellota <136174454+bellitabellota@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:22:30 +0000 Subject: [PATCH 1/2] Rephrase a sentence for more clarity --- ruby_on_rails/rails_sprinkles/js_bundling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby_on_rails/rails_sprinkles/js_bundling.md b/ruby_on_rails/rails_sprinkles/js_bundling.md index 6445e461cef..7438b431cd0 100644 --- a/ruby_on_rails/rails_sprinkles/js_bundling.md +++ b/ruby_on_rails/rails_sprinkles/js_bundling.md @@ -165,7 +165,7 @@ yarn add @hotwired/stimulus Now when we run `yarn run build` we should get the proper outcome! You should also be able to run `bin/dev` and see the Rails splash page at `http://localhost:3000`. -Now that we have walked through how to install a Rails app with import maps let's make our life a little bit easier and set it up with jsbundling-rails! Go ahead and enter the below command. +Now that we have walked through how to install the jsbundling-rails gem in a Rails app that was created with import maps let's make our life a little bit easier and set it up right from the beginning! Go ahead and enter the below command. ```bash rails new myapp -j with your bundler choice> From 2266a2b1cefe97438c8bcfb883460b718ab0647c Mon Sep 17 00:00:00 2001 From: bellitabellota <136174454+bellitabellota@users.noreply.github.com> Date: Wed, 4 Dec 2024 08:38:04 +0000 Subject: [PATCH 2/2] Update wording and chapter numbers of assignment section --- .../active_record_queries.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruby_on_rails/advanced_forms_and_activerecord/active_record_queries.md b/ruby_on_rails/advanced_forms_and_activerecord/active_record_queries.md index a54afea1834..9c178ea9f08 100644 --- a/ruby_on_rails/advanced_forms_and_activerecord/active_record_queries.md +++ b/ruby_on_rails/advanced_forms_and_activerecord/active_record_queries.md @@ -224,15 +224,15 @@ This was a lot of material, but you should have a healthy appreciation for the b 1. Read the first 6 sections of the [Rails Guide on Active Record Querying](http://guides.rubyonrails.org/active_record_querying.html) for a more basic overview of query functions. Don't worry too much about batching and `#find_each`. 1. Read section 20 of the same Rails guide for a brief look at [using `exists?`, `any?` and `many?`](https://guides.rubyonrails.org/active_record_querying.html#existence-of-objects). -1. Read sections 7, 8 and 21 of the same Rails guide for an understanding of [aggregate functions and the calculations you can run on them](https://guides.rubyonrails.org/active_record_querying.html#grouping). -1. Skim sections 9-12 of the same Rails guide on [overriding conditions](https://guides.rubyonrails.org/active_record_querying.html#overriding-conditions). +1. Read sections 7 and 21 to learn about [grouping and aggregate functions](https://guides.rubyonrails.org/active_record_querying.html#grouping). +1. Skim section 8 to learn about [overriding conditions](https://guides.rubyonrails.org/active_record_querying.html#overriding-conditions). 1. Read section 12 of the same Rails guide to see how Rails lets you play with [joining tables together](https://guides.rubyonrails.org/active_record_querying.html#joining-tables). 1. Read section 18 of the same Rails guide for a quick look at [the helpful `find_or_create_by` methods](https://guides.rubyonrails.org/active_record_querying.html#find-or-build-a-new-object). #### Advanced querying 1. Read section 14 in the [Rails Guide on Querying](https://guides.rubyonrails.org/active_record_querying.html#scopes) for a look at scopes. Again, you don't necessarily need to memorize all the details of scopes, but you should understand the concept and when it might be useful. -1. Read section 19 of the same Rails guide for a look at [using SQL directly to query](http://guides.rubyonrails.org/active_record_querying.html#finding-by-sql). +1. Read section 19 “Finding by SQL” of the same Rails guide for a look at [using SQL directly to query](http://guides.rubyonrails.org/active_record_querying.html#finding-by-sql).