jdsutherland

jdsutherland

Modern Front-End Development for Rails B7: pg 71 javascript_packs_tag

We’re going to add it to the layout file app/layouts/application.html.erb by adding <%= javascript_packs_tag(“venue_display”) %> to the header right below the other pack calls.

It looks like this should be:

    <%= javascript_packs_with_chunks_tag(
          'venue_display',
          'data-turbolinks-track': 'reload') %>

Marked As Solved

noelrappin

noelrappin

Author of Modern Front-End Development for Rails

Depends on what beta version of Webpacker you are using – I think we included a note in the changes at the front to that effect.

I also just sent this out to reviewers, it’ll help.

As Noel has been reviewing the book’s code, he’s realized that there are some breaking changes in different beta versions of Webpacker, and also that it’s easier than he thought to wind up with the wrong version. If you are trying to follow along with the code in the book, please keep in mind the following.

Each individual directory in the book’s downloaded code should work as is, but if you are trying to keep up with the code yourself, you should use Webpacker version 6.0.0.beta.5 – beta 6 has a big breaking change that is not reflected in the book text yet.

However, please note that because of an issue in how the Webpacker team has released betas, if you specify the version in your Gemfile, you must use the exact version, and not use the ~> syntax. If you use ~> you’ll get an earlier, incorrect version (specifically, you’ll get 6.0.0.pre.2, which is older).

This should all be cleared up by the time the book is released for good, but we thought it might help you as you review the book.

“”

Popular Pragmatic Bookshelf topics Top

ianwillie
Hello Brian, I have some problems with running the code in your book. I like the style of the book very much and I have learnt a lot as...
New
lirux
Hi Jamis, I think there’s an issue with a test on chapter 6. I own the ebook, version P1.0 Feb. 2019. This test doesn’t pass for me: ...
New
mikecargal
Title: Hands-on Rust: question about get_component (page 295) (feel free to respond. “You dug you’re own hole… good luck”) I have somet...
New
HarryDeveloper
Hi @venkats, It has been mentioned in the description of ‘Supervisory Job’ title that 2 things as mentioned below result in the same eff...
New
jeremyhuiskamp
Title: Web Development with Clojure, Third Edition, vB17.0 (p9) The create table guestbook syntax suggested doesn’t seem to be accepted ...
New
New
digitalbias
Title: Build a Weather Station with Elixir and Nerves: Problem connecting to Postgres with Grafana on (page 64) If you follow the defau...
New
hazardco
On page 78 the following code appears: &lt;%= link_to ‘Destroy’, product, class: ‘hover:underline’, method: :delete, data: { confirm...
New
s2k
Hi all, currently I wonder how the Tailwind colours work (or don’t work). For example, in app/views/layouts/application.html.erb I have...
New
mert
AWDWR 7, page 152, page 153: Hello everyone, I’m a little bit lost on the hotwire part. I didn’t fully understand it. On page 152 @rub...
New

Other popular topics Top

AstonJ
What chair do you have while working… and why? Is there a ‘best’ type of chair or working position for developers?
New
ohm
Which, if any, games do you play? On what platform? I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
New
PragmaticBookshelf
A PragProg Hero’s Journey with Brian P. Hogan @bphogan Have you ever worried that your only legacy will be in the form of legacy...
New
AstonJ
You might be thinking we should just ask who’s not using VSCode :joy: however there are some new additions in the space that might give V...
New
AstonJ
There’s a whole world of custom keycaps out there that I didn’t know existed! Check out all of our Keycaps threads here: https://forum....
New
AstonJ
Seems like a lot of people caught it - just wondered whether any of you did? As far as I know I didn’t, but it wouldn’t surprise me if I...
New
PragmaticBookshelf
Author Spotlight James Stanier @jstanier James Stanier, author of Effective Remote Work , discusses how to rethink the office as we e...
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
sir.laksmana_wenk
I’m able to do the “artistic” part of game-development; character designing/modeling, music, environment modeling, etc. However, I don’t...
New
AstonJ
This is cool! DEEPSEEK-V3 ON M4 MAC: BLAZING FAST INFERENCE ON APPLE SILICON We just witnessed something incredible: the largest open-s...
New