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

abtin
page 20: … protoc command… I had to additionally run the following go get commands in order to be able to compile protobuf code using go...
New
johnp
Running the examples in chapter 5 c under pytest 5.4.1 causes an AttributeError: ‘module’ object has no attribute ‘config’. In particula...
New
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
Alexandr
Hi everyone! There is an error on the page 71 in the book “Programming machine learning from coding to depp learning” P. Perrotta. You c...
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
Mmm
Hi, build fails on: bracket-lib = “~0.8.1” when running on Mac Mini M1 Rust version 1.5.0: Compiling winit v0.22.2 error[E0308]: mi...
New
JohnS
I can’t setup the Rails source code. This happens in a working directory containing multiple (postgres) Rails apps. With: ruby-3.0.0 s...
New
patoncrispy
I’m new to Rust and am using this book to learn more as well as to feed my interest in game dev. I’ve just finished the flappy dragon exa...
New
curtosis
Running mix deps.get in the sensor_hub directory fails with the following error: ** (Mix) No SSH public keys found in ~/.ssh. An ssh aut...
New
adamwoolhether
Is there any place where we can discuss the solutions to some of the exercises? I can figure most of them out, but am having trouble with...
New

Other popular topics Top

wolf4earth
@AstonJ prompted me to open this topic after I mentioned in the lockdown thread how I started to do a lot more for my fitness. https://f...
New
AstonJ
I ended up cancelling my Moonlander order as I think it’s just going to be a bit too bulky for me. I think the Planck and the Preonic (o...
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
Use WebRTC to build web applications that stream media and data in real time directly from one user to another, all in the browser. ...
New
mafinar
This is going to be a long an frequently posted thread. While talking to a friend of mine who has taken data structure and algorithm cou...
New
Help
I am trying to crate a game for the Nintendo switch, I wanted to use Java as I am comfortable with that programming language. Can you use...
New
New
New
CommunityNews
A Brief Review of the Minisforum V3 AMD Tablet. Update: I have created an awesome-minisforum-v3 GitHub repository to list information fo...
New
AstonJ
If you’re getting errors like this: psql: error: connection to server on socket “/tmp/.s.PGSQL.5432” failed: No such file or directory ...
New

Sub Categories: