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.

“”

Where Next?

Popular Pragmatic Bookshelf topics Top

GilWright
Working through the steps (checking that the Info,plist matches exactly), run the demo game and what appears is grey but does not fill th...
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
raul
Page 28: It implements io.ReaderAt on the store type. Sorry if it’s a dumb question but was the io.ReaderAt supposed to be io.ReadAt? ...
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
alanq
This isn’t directly about the book contents so maybe not the right forum…but in some of the code apps (e.g. turbo/06) it sends a TURBO_ST...
New
rmurray10127
Title: Intuitive Python: docker run… denied error (page 2) Attempted to run the docker command in both CLI and Powershell PS C:\Users\r...
New
adamwoolhether
I’m not quite sure what’s going on here, but I’m unable to have to containers successfully complete the Readiness/Liveness checks. I’m im...
New
jonmac
The allprojects block listed on page 245 produces the following error when syncing gradle: “org.gradle.api.GradleScriptException: A prob...
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
mcpierce
@mfazio23 I’ve applied the changes from Chapter 5 of the book and everything builds correctly and runs. But, when I try to start a game,...
New

Other popular topics Top

Devtalk
Reading something? Working on something? Planning something? Changing jobs even!? If you’re up for sharing, please let us know what you’...
1033 17470 383
New
dasdom
No chair. I have a standing desk. This post was split into a dedicated thread from our thread about chairs :slight_smile:
New
AstonJ
Inspired by this post from @Carter, which languages, frameworks or other tech or tools do you think is killing it right now? :upside_down...
New
AstonJ
This looks like a stunning keycap set :orange_heart: A LEGENDARY KEYBOARD LIVES ON When you bought an Apple Macintosh computer in the e...
New
PragmaticBookshelf
Tailwind CSS is an exciting new CSS framework that allows you to design your site by composing simple utility classes to create complex e...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
PragmaticBookshelf
Learn different ways of writing concurrent code in Elixir and increase your application's performance, without sacrificing scalability or...
New
mafinar
Crystal recently reached version 1. I had been following it for awhile but never got to really learn it. Most languages I picked up out o...
New
AstonJ
Was just curious to see if any were around, found this one: I got 51/100: Not sure if it was meant to buy I am sure at times the b...
New
PragmaticBookshelf
Author Spotlight: Sophie DeBenedetto @SophieDeBenedetto The days of the traditional request-response web application are long gone, b...
New

Sub Categories: